Struct silkenweb_html::elements::EmbedBuilder
source · pub struct EmbedBuilder(_);
Implementations§
source§impl EmbedBuilder
impl EmbedBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn height(self, value: impl AttributeValue<String>) -> Self
pub fn height(self, value: impl AttributeValue<String>) -> Self
The displayed height of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.
sourcepub fn src(self, value: impl AttributeValue<String>) -> Self
pub fn src(self, value: impl AttributeValue<String>) -> Self
The URL of the resource being embedded.
sourcepub fn type_(self, value: impl AttributeValue<String>) -> Self
pub fn type_(self, value: impl AttributeValue<String>) -> Self
The MIME type to use to select the plug-in to instantiate.
sourcepub fn width(self, value: impl AttributeValue<String>) -> Self
pub fn width(self, value: impl AttributeValue<String>) -> Self
The displayed width of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.
source§impl EmbedBuilder
impl EmbedBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlEmbedElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlEmbedElement)
) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlEmbedElement)) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlEmbedElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlEmbedElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlEmbedElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlEmbedElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlEmbedElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlEmbedElement>) -> Self
Trait Implementations§
source§impl Builder for EmbedBuilder
impl Builder for EmbedBuilder
source§impl DomElement for EmbedBuilder
impl DomElement for EmbedBuilder
type Target = HtmlEmbedElement
fn dom_element(&self) -> Self::Target
source§impl From<EmbedBuilder> for Element
impl From<EmbedBuilder> for Element
source§fn from(builder: EmbedBuilder) -> Self
fn from(builder: EmbedBuilder) -> Self
Converts to this type from the input type.
source§impl From<EmbedBuilder> for ElementBuilder
impl From<EmbedBuilder> for ElementBuilder
source§fn from(builder: EmbedBuilder) -> Self
fn from(builder: EmbedBuilder) -> Self
Converts to this type from the input type.