Struct ObjectBuilder

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

Implementations§

Source§

impl ObjectBuilder

Source

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

Source

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

Source

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

Specifies the URL of the resource.

Source

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

The form element, if any, that the object element is associated with (its form owner). The value of the attribute must be an ID of a <form> element in the same document.

Source

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

The height of the displayed resource, in CSS pixels. No percentages.

Source

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

The name of valid browsing context.

Source

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

The content type of the resource specified by data. At least one of data and type must be defined.

Source

pub fn typemustmatch(self, value: impl AttributeValue<bool>) -> Self

Indicates if the type attribute and the actual content type of the resource must match to be used.

Source

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

A hash-name reference to a <map> element; that is a ‘#’ followed by the value of a name of a map element.

Source

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

The width of the display resource, in CSS pixels. No percentages.

Source§

impl ObjectBuilder

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source§

impl ObjectBuilder

Source

pub fn text(self, child: impl Text) -> Self

Source

pub fn child<Child>(self, c: Child) -> Self
where Child: Into<Element>,

Trait Implementations§

Source§

impl Builder for ObjectBuilder

Source§

impl DomElement for ObjectBuilder

Source§

impl From<ObjectBuilder> for Element

Source§

fn from(builder: ObjectBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<ObjectBuilder> for ElementBuilder

Source§

fn from(builder: ObjectBuilder) -> 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.