pub struct ObjectBuilder(/* private fields */);
Implementations§
Source§impl ObjectBuilder
impl ObjectBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
Sourcepub fn data(self, value: impl AttributeValue<String>) -> Self
pub fn data(self, value: impl AttributeValue<String>) -> Self
Specifies the URL of the resource.
Sourcepub fn form(self, value: impl AttributeValue<String>) -> Self
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.
Sourcepub fn height(self, value: impl AttributeValue<String>) -> Self
pub fn height(self, value: impl AttributeValue<String>) -> Self
The height of the displayed resource, in CSS pixels. No percentages.
Sourcepub fn name(self, value: impl AttributeValue<String>) -> Self
pub fn name(self, value: impl AttributeValue<String>) -> Self
The name of valid browsing context.
Sourcepub fn type_(self, value: impl AttributeValue<String>) -> Self
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.
Sourcepub fn typemustmatch(self, value: impl AttributeValue<bool>) -> Self
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.
Sourcepub fn usemap(self, value: impl AttributeValue<String>) -> Self
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.
Sourcepub fn width(self, value: impl AttributeValue<String>) -> Self
pub fn width(self, value: impl AttributeValue<String>) -> Self
The width of the display resource, in CSS pixels. No percentages.
Source§impl ObjectBuilder
impl ObjectBuilder
pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlObjectElement), ) -> Self
pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlObjectElement), ) -> Self
pub fn on_change( self, f: impl 'static + FnMut(Event, HtmlObjectElement), ) -> Self
pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlObjectElement), ) -> Self
pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlObjectElement), ) -> Self
pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlObjectElement), ) -> Self
pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlObjectElement), ) -> Self
pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlObjectElement), ) -> Self
pub fn effect(self, f: impl Effect<HtmlObjectElement>) -> Self
Trait Implementations§
Source§impl Builder for ObjectBuilder
impl Builder for ObjectBuilder
Source§impl DomElement for ObjectBuilder
impl DomElement for ObjectBuilder
type Target = HtmlObjectElement
fn dom_element(&self) -> Self::Target
Source§impl From<ObjectBuilder> for Element
impl From<ObjectBuilder> for Element
Source§fn from(builder: ObjectBuilder) -> Self
fn from(builder: ObjectBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ObjectBuilder> for ElementBuilder
impl From<ObjectBuilder> for ElementBuilder
Source§fn from(builder: ObjectBuilder) -> Self
fn from(builder: ObjectBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObjectBuilder
impl !RefUnwindSafe for ObjectBuilder
impl !Send for ObjectBuilder
impl !Sync for ObjectBuilder
impl Unpin for ObjectBuilder
impl !UnwindSafe for ObjectBuilder
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