Struct silkenweb::elements::ObjectBuilder[][src]

pub struct ObjectBuilder(_);

Implementations

impl ObjectBuilder[src]

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

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

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

Specifies the URL of the resource.

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

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.

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

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

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

The name of valid browsing context.

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

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

pub fn typemustmatch(self, value: impl AttributeValue<bool>) -> ObjectBuilder[src]

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

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

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

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

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

impl ObjectBuilder[src]

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

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

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

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

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

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

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

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

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

impl ObjectBuilder[src]

pub fn text(self, child: impl Text) -> ObjectBuilder[src]

pub fn child<Child>(self, c: Child) -> ObjectBuilder where
    Child: Into<Element>, 
[src]

Trait Implementations

impl Builder for ObjectBuilder[src]

type Target = Object

impl DomElement for ObjectBuilder[src]

impl From<ObjectBuilder> for ElementBuilder[src]

impl From<ObjectBuilder> for Element[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.