HtmlSourceElement

Struct HtmlSourceElement 

Source
pub struct HtmlSourceElement { /* private fields */ }
Expand description

The HtmlSourceElement class.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Implementations§

Source§

impl HtmlSourceElement

Source

pub fn src(&self) -> String

Getter for the src field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_src(&self, value: &str)

Setter for the src field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn type_(&self) -> String

Getter for the type field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_type(&self, value: &str)

Setter for the type field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn srcset(&self) -> String

Getter for the srcset field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_srcset(&self, value: &str)

Setter for the srcset field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn sizes(&self) -> String

Getter for the sizes field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_sizes(&self, value: &str)

Setter for the sizes field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn media(&self) -> String

Getter for the media field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_media(&self, value: &str)

Setter for the media field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Methods from Deref<Target = HtmlElement>§

Source

pub fn title(&self) -> String

Getter for the title field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_title(&self, value: &str)

Setter for the title field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn scroll_height(&self) -> i32

Getter for the scrollHeight field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_scroll_height(&self, value: i32)

Setter for the scrollHeight field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn scroll_top(&self) -> i32

Getter for the scrollTop field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_scroll_top(&self, value: i32)

Setter for the scrollTop field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn lang(&self) -> String

Getter for the lang field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_lang(&self, value: &str)

Setter for the lang field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn dir(&self) -> String

Getter for the dir field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_dir(&self, value: &str)

Setter for the dir field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn inner_text(&self) -> String

Getter for the innerText field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_inner_text(&self, value: &str)

Setter for the innerText field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn hidden(&self) -> bool

Getter for the hidden field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_hidden(&self, value: bool)

Setter for the hidden field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn inert(&self) -> bool

Getter for the inert field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_inert(&self, value: bool)

Setter for the inert field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn access_key(&self) -> String

Getter for the accessKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_access_key(&self, value: &str)

Setter for the accessKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn access_key_label(&self) -> String

Getter for the accessKeyLabel field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn draggable(&self) -> bool

Getter for the draggable field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_draggable(&self, value: bool)

Setter for the draggable field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn content_editable(&self) -> String

Getter for the contentEditable field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_content_editable(&self, value: &str)

Setter for the contentEditable field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn is_content_editable(&self) -> bool

Getter for the isContentEditable field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn popover(&self) -> Option<String>

Getter for the popover field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_popover(&self, value: Option<&str>) -> Result<(), JsValue>

Setter for the popover field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn spellcheck(&self) -> bool

Getter for the spellcheck field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_spellcheck(&self, value: bool)

Setter for the spellcheck field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn offset_parent(&self) -> Option<Element>

Getter for the offsetParent field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn offset_top(&self) -> i32

Getter for the offsetTop field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn offset_left(&self) -> i32

Getter for the offsetLeft field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn offset_width(&self) -> i32

Getter for the offsetWidth field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn offset_height(&self) -> i32

Getter for the offsetHeight field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn oncopy(&self) -> Option<Function>

Getter for the oncopy field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_oncopy(&self, value: Option<&Function>)

Setter for the oncopy field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn oncut(&self) -> Option<Function>

Getter for the oncut field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_oncut(&self, value: Option<&Function>)

Setter for the oncut field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn onpaste(&self) -> Option<Function>

Getter for the onpaste field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_onpaste(&self, value: Option<&Function>)

Setter for the onpaste field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn style(&self) -> CssStyleDeclaration

Getter for the style field of this object.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration, HtmlElement

Source

pub fn onabort(&self) -> Option<Function>

Getter for the onabort field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_onabort(&self, value: Option<&Function>)

Setter for the onabort field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn onblur(&self) -> Option<Function>

Getter for the onblur field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlElement

Source

pub fn set_onblur(&self, value: