Type Alias yew_ansi::Ansi

source ·
pub type Ansi<Builder = InlineStyle> = AnsiRenderer<String, Builder>;
Expand description

ANSI component which takes a String.

See AnsiRenderer for more details.

Aliased Type§

struct Ansi<Builder = InlineStyle> { /* private fields */ }

Trait Implementations§

source§

impl<Text, Builder> Component for AnsiRenderer<Text, Builder>where Text: Borrow<str> + Clone + PartialEq + 'static, Builder: StyleBuilder + 'static,

§

type Message = ()

Messages are used to make Components dynamic and interactive. Simple Component’s can declare their Message type to be (). Complex Component’s commonly use an enum to declare multiple Message types.
§

type Properties = AnsiProps<Text>

The Component’s properties. Read more
source§

fn create(ctx: &Context<Self>) -> Self

Called when component is created.
source§

fn update(&mut self, _ctx: &Context<Self>, _msg: Self::Message) -> bool

Called when a new message is sent to the component via its scope. Read more
source§

fn changed(&mut self, ctx: &Context<Self>, _old: &Self::Properties) -> bool

Called when properties passed to the component change Read more
source§

fn view(&self, ctx: &Context<Self>) -> Html

Components define their visual layout using a JSX-style syntax through the use of the html! procedural macro. The full guide to using the macro can be found in Yew’s documentation. Read more
source§

fn rendered(&mut self, ctx: &Context<Self>, first_render: bool)

The rendered method is called after each time a Component is rendered but before the browser updates the page. Read more
source§

fn prepare_state(&self) -> Option<String>

Prepares the state during server side rendering. Read more
source§

fn destroy(&mut self, ctx: &Context<Self>)

Called right before a Component is unmounted.
source§

impl<Text, Builder> Debug for AnsiRenderer<Text, Builder>where Text: Clone + PartialEq + Debug, Builder: StyleBuilder + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more