Struct silkenweb::elements::BaseBuilder[][src]

pub struct BaseBuilder(_);

Implementations

impl BaseBuilder[src]

pub fn id(self, value: impl AttributeValue<String>) -> BaseBuilder[src]

pub fn class(self, value: impl AttributeValue<String>) -> BaseBuilder[src]

pub fn href(self, value: impl AttributeValue<String>) -> BaseBuilder[src]

The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.

pub fn target(self, value: impl AttributeValue<String>) -> BaseBuilder[src]

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.

impl BaseBuilder[src]

pub fn on_blur(
    self,
    f: impl FnMut(FocusEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_click(
    self,
    f: impl FnMut(MouseEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_change(
    self,
    f: impl FnMut(Event, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_dblclick(
    self,
    f: impl FnMut(MouseEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_focusout(
    self,
    f: impl FnMut(FocusEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_input(
    self,
    f: impl FnMut(InputEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_keydown(
    self,
    f: impl FnMut(KeyboardEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn on_keyup(
    self,
    f: impl FnMut(KeyboardEvent, HtmlBaseElement) + 'static
) -> BaseBuilder
[src]

pub fn effect(self, f: impl Effect<HtmlBaseElement>) -> BaseBuilder[src]

Trait Implementations

impl Builder for BaseBuilder[src]

type Target = Base

impl DomElement for BaseBuilder[src]

impl From<BaseBuilder> for Element[src]

impl From<BaseBuilder> for ElementBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.