Struct silkenweb_html::elements::DataBuilder
source · pub struct DataBuilder(_);
Implementations§
source§impl DataBuilder
impl DataBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn value(self, value: impl AttributeValue<String>) -> Self
pub fn value(self, value: impl AttributeValue<String>) -> Self
This attribute specifies the machine-readable translation of the content of the element.
source§impl DataBuilder
impl DataBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlDataElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlDataElement)
) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlDataElement)) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlDataElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlDataElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlDataElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlDataElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlDataElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlDataElement>) -> Self
Trait Implementations§
source§impl Builder for DataBuilder
impl Builder for DataBuilder
source§impl DomElement for DataBuilder
impl DomElement for DataBuilder
type Target = HtmlDataElement
fn dom_element(&self) -> Self::Target
source§impl From<DataBuilder> for Element
impl From<DataBuilder> for Element
source§fn from(builder: DataBuilder) -> Self
fn from(builder: DataBuilder) -> Self
Converts to this type from the input type.
source§impl From<DataBuilder> for ElementBuilder
impl From<DataBuilder> for ElementBuilder
source§fn from(builder: DataBuilder) -> Self
fn from(builder: DataBuilder) -> Self
Converts to this type from the input type.