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

pub struct Props {
    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

body: Html

body of the modal

is_open: bool

if it is true, shows the modal otherwise is hidden

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

modal_size: Size

Three diffent modal standard sizes

header_palette: Palette

Type modal header style

header_style: Style

Modal header styles

header_interaction: bool

If hove, focus, active effects are enable in the header

body_palette: Palette

Type modal body style

body_style: Style

Modal body styles

body_interaction: bool

If hove, focus, active effects are enable in the body

auto_focus: bool

If the modal content get the focus. Set to false if the modal includes input events

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 Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_body>

Builder that will be used to construct properties

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]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,