Struct yew_styles::button::Props[][src]

pub struct Props {
    pub button_palette: Palette,
    pub class_name: String,
    pub id: String,
    pub code_ref: NodeRef,
    pub key: String,
    pub button_size: Size,
    pub button_style: Style,
    pub onclick_signal: Callback<MouseEvent>,
    pub children: Children,
}

Fields

button_palette: Palette

Type botton style. Default Palette::Standard

class_name: String

General property to add custom class styles

id: String

General property to add custom id

code_ref: NodeRef

General property to get the ref of the component

key: String

General property to add keys

button_size: Size

Three diffent button standard sizes. Default Size::Medium

button_style: Style

Button styles. Default Style::Regular

onclick_signal: Callback<MouseEvent>

Click event for button. Required

children: Children

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.