Struct silkenweb::elements::DialogBuilder[][src]

pub struct DialogBuilder(_);

Implementations

impl DialogBuilder[src]

pub fn id(self, value: impl AttributeValue<String>) -> DialogBuilder[src]

pub fn class(self, value: impl AttributeValue<String>) -> DialogBuilder[src]

pub fn open(self, value: impl AttributeValue<bool>) -> DialogBuilder[src]

Indicates that the dialog is active and can be interacted with. When the open attribute is not set, the dialog shouldn’t be shown to the user.

impl DialogBuilder[src]

pub fn on_blur(
    self,
    f: impl FnMut(FocusEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_click(
    self,
    f: impl FnMut(MouseEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_change(
    self,
    f: impl FnMut(Event, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_dblclick(
    self,
    f: impl FnMut(MouseEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_focusout(
    self,
    f: impl FnMut(FocusEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_input(
    self,
    f: impl FnMut(InputEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_keydown(
    self,
    f: impl FnMut(KeyboardEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn on_keyup(
    self,
    f: impl FnMut(KeyboardEvent, HtmlDialogElement) + 'static
) -> DialogBuilder
[src]

pub fn effect(self, f: impl Effect<HtmlDialogElement>) -> DialogBuilder[src]

impl DialogBuilder[src]

pub fn text(self, child: impl Text) -> DialogBuilder[src]

pub fn child<Child>(self, c: Child) -> DialogBuilder where
    Child: Into<Element>, 
[src]

Trait Implementations

impl Builder for DialogBuilder[src]

type Target = Dialog

impl DomElement for DialogBuilder[src]

impl From<DialogBuilder> for Element[src]

impl From<DialogBuilder> for ElementBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

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

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.