Struct yew_styles::card::Props [−][src]
pub struct Props {}Show 25 fields
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 draggable: bool, pub header: Option<Html>, pub header_size: i8, pub body: Option<Html>, pub body_size: i8, pub footer: Option<Html>, pub footer_size: i8, pub single_content: Option<Html>, pub card_palette: Palette, pub card_style: Style, pub card_size: Size, pub interaction_effect: bool, pub code_ref: NodeRef, pub key: String, pub class_name: String, pub id: String,
Fields
ondrag_signal: Callback<DragEvent>
A dragged item (element or text selection) is dragged
ondragend_signal: Callback<DragEvent>
A drag operation ends
ondragenter_signal: Callback<DragEvent>
A dragged item enters a valid drop target.
ondragexit_signal: Callback<DragEvent>
An element is no longer the drag operation’s immediate selection target
ondragleave_signal: Callback<DragEvent>
A dragged item leaves a valid drop target
ondragover_signal: Callback<DragEvent>
A dragged item is being dragged over a valid drop target Every few hundred milliseconds
ondragstart_signal: Callback<DragEvent>
The user starts dragging an item
ondrop_signal: Callback<DragEvent>
An item is dropped on a valid drop target
onclick_signal: Callback<MouseEvent>
Click event for card
draggable: bool
If the item is draggable. Default false
header: Option<Html>
Header content of the card. Default None
header_size: i8
The size of the header card based in Flexbox. Default 4
body: Option<Html>
Body content of the card. Default None
body_size: i8
The size of the body card based in Flexbox. Default 6
Footer content of the card
The size of the footer card based in Flexbox. Default 2
single_content: Option<Html>
Without split in parts, only a single content. Default None
card_palette: Palette
Type card purpose style. Default Palette::Standard
card_style: Style
Card styles. Default Style::Regular
card_size: Size
three diffent card standard sizes. Default Size::Medium
interaction_effect: bool
if hove, focus, active effects are enable. Default true
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.