[][src]Struct yew_styles::text::Props

pub struct Props {
    pub text: String,
    pub text_type: TextType,
    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: String

Text to show

text_type: TextType

How is showing the text

interaction_effect: bool

if hove, focus, active effects are enable. Only for tag type

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

removable: bool

If the tag can be deleted

text_palette: Palette

Type text purpose style. Only for tag and alert type

text_style: Style

Text styles. Only for tag and alert type

text_size: Size

Three diffent text standard sizes. Not for title type

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

impl Clone for Props[src]

impl Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_text>

Builder that will be used to construct properties

Auto Trait Implementations

impl !RefUnwindSafe for Props

impl !Send for Props

impl !Sync for Props

impl Unpin for Props

impl !UnwindSafe for Props

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,