pub struct DataBuilder(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for DataBuilder
impl !RefUnwindSafe for DataBuilder
impl !Send for DataBuilder
impl !Sync for DataBuilder
impl Unpin for DataBuilder
impl !UnwindSafe for DataBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more