pub struct EmbedBuilder(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for EmbedBuilder
impl !RefUnwindSafe for EmbedBuilder
impl !Send for EmbedBuilder
impl !Sync for EmbedBuilder
impl Unpin for EmbedBuilder
impl !UnwindSafe for EmbedBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more