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: Option<Html>

Footer content of the card

footer_size: i8

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Builder that will be used to construct properties

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.