Struct silkenweb_html::elements::ObjectBuilder
source · pub struct ObjectBuilder(_);
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.