Struct yew_styles::text::Props [−][src]
pub struct Props {}Show 23 fields
pub text_type: TextType, pub plain_text: String, pub html_text: Option<Html>, pub interaction_effect: bool, pub ondrag_signal: Callback<DragEvent>, pub ondragend_signal: Callback<DragEvent>, pub ondragenter_signal: Callback<DragEvent>, pub ondragexit_signal: Callback<DragEvent>, pub ondragleave_signal: Callback<DragEvent>, pub ondragover_signal: Callback<DragEvent>, pub ondragstart_signal: Callback<DragEvent>, pub ondrop_signal: Callback<DragEvent>, pub onclick_signal: Callback<MouseEvent>, pub ondelete_signal: Callback<MouseEvent>, pub draggable: bool, pub removable: bool, pub text_palette: Palette, pub text_style: Style, pub text_size: Size, pub code_ref: NodeRef, pub key: String, pub class_name: String, pub id: String,
Fields
text_type: TextType
How is showing the text. Required
plain_text: String
Text plain to show. Required
html_text: Option<Html>
Text in html to show. Required
interaction_effect: bool
if hove, focus, active effects are enable. Only for tag type. Default false
ondrag_signal: Callback<DragEvent>
A dragged item (element or text selection) is dragged. Only for tag type
ondragend_signal: Callback<DragEvent>
A drag operation ends. Only for tag type
ondragenter_signal: Callback<DragEvent>
A dragged item enters a valid drop target. Only for tag type
ondragexit_signal: Callback<DragEvent>
An element is no longer the drag operation’s immediate selection target. Only for tag type
ondragleave_signal: Callback<DragEvent>
A dragged item leaves a valid drop target. Only for tag type
ondragover_signal: Callback<DragEvent>
A dragged item is being dragged over a valid drop target Every few hundred milliseconds. Only for tag type
ondragstart_signal: Callback<DragEvent>
The user starts dragging an item. Only for tag type
ondrop_signal: Callback<DragEvent>
An item is dropped on a valid drop target. Only for tag type
onclick_signal: Callback<MouseEvent>
Click event only for text tag type
ondelete_signal: Callback<MouseEvent>
Click event only for text tag type with removable in true
draggable: bool
If the item is draggable. Only for tag type. Default false
removable: bool
If the tag can be deleted. Default false
text_palette: Palette
Type text purpose style. Only for tag and alert type. Default Palette::Standard
text_style: Style
Text styles. Only for tag and alert type. Default Style::Regular
text_size: Size
Three diffent text standard sizes. Not for title type. Default Size::Medium
code_ref: NodeRef
General property to get the ref of the component
key: String
General property to add keys
class_name: String
General property to add custom class styles
id: String
General property to add custom id
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !UnwindSafe for Props
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an optional value of a Properties
struct.
Convert self
to a value of a Properties
struct.
Convert self
to a value of a Properties
struct.