[−][src]Struct yew_styles::text::Props
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
impl Clone for Props
[src]
impl PartialEq<Props> for Props
[src]
impl Properties for Props
[src]
type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_html_text>
Builder that will be used to construct properties
fn builder() -> Self::Builder
[src]
impl StructuralPartialEq for Props
[src]
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,