Struct silkenweb_html::elements::BaseBuilder
source · pub struct BaseBuilder(_);
Implementations§
source§impl BaseBuilder
impl BaseBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn href(self, value: impl AttributeValue<String>) -> Self
pub fn href(self, value: impl AttributeValue<String>) -> Self
The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.
sourcepub fn target(self, value: impl AttributeValue<String>) -> Self
pub fn target(self, value: impl AttributeValue<String>) -> Self
A keyword or author-defined name of the default browsing context to display the result
when links or forms cause navigation, for <a>
or <form>
elements without an explicit
target attribute. The attribute value targets a browsing context (such as a tab, window,
or <iframe>
).
The following keywords have special meanings:
_self
: Load the result into the same browsing context as the current one. (This is the default.)_blank
: Load the result into a new, unnamed browsing context._parent
: Load the result into the parent browsing context of the current one. (If the current page is inside a frame.) If there is no parent, behaves the same way as _self._top
: Load the result into the topmost browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, behaves the same way as _self.
source§impl BaseBuilder
impl BaseBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlBaseElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlBaseElement)
) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlBaseElement)) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlBaseElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlBaseElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlBaseElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlBaseElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlBaseElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlBaseElement>) -> Self
Trait Implementations§
source§impl Builder for BaseBuilder
impl Builder for BaseBuilder
source§impl DomElement for BaseBuilder
impl DomElement for BaseBuilder
type Target = HtmlBaseElement
fn dom_element(&self) -> Self::Target
source§impl From<BaseBuilder> for Element
impl From<BaseBuilder> for Element
source§fn from(builder: BaseBuilder) -> Self
fn from(builder: BaseBuilder) -> Self
Converts to this type from the input type.
source§impl From<BaseBuilder> for ElementBuilder
impl From<BaseBuilder> for ElementBuilder
source§fn from(builder: BaseBuilder) -> Self
fn from(builder: BaseBuilder) -> Self
Converts to this type from the input type.