Struct yew_styles::modal::Props[][src]

pub struct Props {
Show 18 fields pub header: Html, pub body: Html, pub is_open: bool, pub onclick_signal: Callback<MouseEvent>, pub onkeydown_signal: Callback<KeyboardEvent>, pub modal_palette: Palette, pub modal_size: Size, pub header_palette: Palette, pub header_style: Style, pub header_interaction: bool, pub body_palette: Palette, pub body_style: Style, pub body_interaction: bool, pub auto_focus: bool, pub code_ref: NodeRef, pub key: String, pub class_name: String, pub id: String,
}

Fields

header: Html

Header of the modal. Required

body: Html

body of the modal. Required

is_open: bool

if it is true, shows the modal otherwise is hidden. Required

onclick_signal: Callback<MouseEvent>

click event for modal (usually to close the modal)

onkeydown_signal: Callback<KeyboardEvent>

keyboard event for modal (usually to close the modal)

modal_palette: Palette

Type modal background style. Default Palette::Standard

modal_size: Size

Three diffent modal standard sizes. Default Size::Medium

header_palette: Palette

Type modal header style. Default Palette::Standard

header_style: Style

Modal header styles. Default Style::Regular

header_interaction: bool

If hove, focus, active effects are enable in the header. Default false

body_palette: Palette

Type modal body style. Default Palette::Standard

body_style: Style

Modal body styles. Default Style::Regular

body_interaction: bool

If hove, focus, active effects are enable in the body. Default false

auto_focus: bool

If the modal content get the focus. Set to false if the modal includes input events. 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.