Struct silkenweb::elements::EmbedBuilder[][src]

pub struct EmbedBuilder(_);

Implementations

impl EmbedBuilder[src]

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

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

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

The displayed height of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.

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

The URL of the resource being embedded.

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

The MIME type to use to select the plug-in to instantiate.

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

The displayed width of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.

impl EmbedBuilder[src]

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Builder for EmbedBuilder[src]

type Target = Embed

impl DomElement for EmbedBuilder[src]

impl From<EmbedBuilder> for Element[src]

impl From<EmbedBuilder> 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.