Struct silkenweb_html::elements::DialogBuilder
source · pub struct DialogBuilder(_);
Implementations§
source§impl DialogBuilder
impl DialogBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn open(self, value: impl AttributeValue<bool>) -> Self
pub fn open(self, value: impl AttributeValue<bool>) -> Self
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.
source§impl DialogBuilder
impl DialogBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlDialogElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlDialogElement)
) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlDialogElement)) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlDialogElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlDialogElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlDialogElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlDialogElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlDialogElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlDialogElement>) -> Self
Trait Implementations§
source§impl Builder for DialogBuilder
impl Builder for DialogBuilder
source§impl DomElement for DialogBuilder
impl DomElement for DialogBuilder
type Target = HtmlDialogElement
fn dom_element(&self) -> Self::Target
source§impl From<DialogBuilder> for Element
impl From<DialogBuilder> for Element
source§fn from(builder: DialogBuilder) -> Self
fn from(builder: DialogBuilder) -> Self
Converts to this type from the input type.
source§impl From<DialogBuilder> for ElementBuilder
impl From<DialogBuilder> for ElementBuilder
source§fn from(builder: DialogBuilder) -> Self
fn from(builder: DialogBuilder) -> Self
Converts to this type from the input type.