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