Struct BaseBuilder

Source
pub struct BaseBuilder(/* private fields */);

Implementations§

Source§

impl BaseBuilder

Source

pub fn id(self, value: impl AttributeValue<String>) -> Self

Source

pub fn class(self, value: impl AttributeValue<String>) -> Self

Source

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.

Source

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

Source

pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlBaseElement)) -> Self

Source

pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlBaseElement), ) -> Self

Source

pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlBaseElement), ) -> Self

Source

pub fn effect(self, f: impl Effect<HtmlBaseElement>) -> Self

Trait Implementations§

Source§

impl Builder for BaseBuilder

Source§

impl DomElement for BaseBuilder

Source§

impl From<BaseBuilder> for Element

Source§

fn from(builder: BaseBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<BaseBuilder> for ElementBuilder

Source§

fn from(builder: BaseBuilder) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.