pub struct HTMLFieldSetElement { /* private fields */ }Expand description
The HTMLFieldSetElement class.
HTMLFieldSetElement
Implementations§
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn disabled(&self) -> bool
pub fn disabled(&self) -> bool
Getter of the disabled attribute.
HTMLFieldSetElement.disabled
Sourcepub fn set_disabled(&mut self, value: bool)
pub fn set_disabled(&mut self, value: bool)
Setter of the disabled attribute.
HTMLFieldSetElement.disabled
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn form(&self) -> HTMLFormElement
pub fn form(&self) -> HTMLFormElement
Getter of the form attribute.
HTMLFieldSetElement.form
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn name(&self) -> JsString
pub fn name(&self) -> JsString
Getter of the name attribute.
HTMLFieldSetElement.name
Sourcepub fn set_name(&mut self, value: &JsString)
pub fn set_name(&mut self, value: &JsString)
Setter of the name attribute.
HTMLFieldSetElement.name
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn type_(&self) -> JsString
pub fn type_(&self) -> JsString
Getter of the type attribute.
HTMLFieldSetElement.type
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn elements(&self) -> HTMLCollection
pub fn elements(&self) -> HTMLCollection
Getter of the elements attribute.
HTMLFieldSetElement.elements
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn will_validate(&self) -> bool
pub fn will_validate(&self) -> bool
Getter of the willValidate attribute.
HTMLFieldSetElement.willValidate
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn validity(&self) -> ValidityState
pub fn validity(&self) -> ValidityState
Getter of the validity attribute.
HTMLFieldSetElement.validity
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn validation_message(&self) -> JsString
pub fn validation_message(&self) -> JsString
Getter of the validationMessage attribute.
HTMLFieldSetElement.validationMessage
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn new() -> HTMLFieldSetElement
pub fn new() -> HTMLFieldSetElement
The new HTMLFieldSetElement(..) constructor, creating a new HTMLFieldSetElement instance
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn check_validity(&self) -> bool
pub fn check_validity(&self) -> bool
The checkValidity method.
HTMLFieldSetElement.checkValidity
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn report_validity(&self) -> bool
pub fn report_validity(&self) -> bool
The reportValidity method.
HTMLFieldSetElement.reportValidity
Source§impl HTMLFieldSetElement
impl HTMLFieldSetElement
Sourcepub fn set_custom_validity(&self, error: &JsString) -> Undefined
pub fn set_custom_validity(&self, error: &JsString) -> Undefined
The setCustomValidity method.
HTMLFieldSetElement.setCustomValidity
Methods from Deref<Target = HTMLElement>§
Sourcepub fn title(&self) -> JsString
pub fn title(&self) -> JsString
Getter of the title attribute.
HTMLElement.title
Sourcepub fn set_title(&mut self, value: &JsString)
pub fn set_title(&mut self, value: &JsString)
Setter of the title attribute.
HTMLElement.title
Sourcepub fn lang(&self) -> JsString
pub fn lang(&self) -> JsString
Getter of the lang attribute.
HTMLElement.lang
Sourcepub fn set_lang(&mut self, value: &JsString)
pub fn set_lang(&mut self, value: &JsString)
Setter of the lang attribute.
HTMLElement.lang
Sourcepub fn translate(&self) -> bool
pub fn translate(&self) -> bool
Getter of the translate attribute.
HTMLElement.translate
Sourcepub fn set_translate(&mut self, value: bool)
pub fn set_translate(&mut self, value: bool)
Setter of the translate attribute.
HTMLElement.translate
Sourcepub fn dir(&self) -> JsString
pub fn dir(&self) -> JsString
Getter of the dir attribute.
HTMLElement.dir
Sourcepub fn set_dir(&mut self, value: &JsString)
pub fn set_dir(&mut self, value: &JsString)
Setter of the dir attribute.
HTMLElement.dir
Getter of the hidden attribute.
HTMLElement.hidden
Setter of the hidden attribute.
HTMLElement.hidden
Sourcepub fn inert(&self) -> bool
pub fn inert(&self) -> bool
Getter of the inert attribute.
HTMLElement.inert
Sourcepub fn set_inert(&mut self, value: bool)
pub fn set_inert(&mut self, value: bool)
Setter of the inert attribute.
HTMLElement.inert
Sourcepub fn access_key(&self) -> JsString
pub fn access_key(&self) -> JsString
Getter of the accessKey attribute.
HTMLElement.accessKey
Sourcepub fn set_access_key(&mut self, value: &JsString)
pub fn set_access_key(&mut self, value: &JsString)
Setter of the accessKey attribute.
HTMLElement.accessKey
Sourcepub fn access_key_label(&self) -> JsString
pub fn access_key_label(&self) -> JsString
Getter of the accessKeyLabel attribute.
HTMLElement.accessKeyLabel
Sourcepub fn draggable(&self) -> bool
pub fn draggable(&self) -> bool
Getter of the draggable attribute.
HTMLElement.draggable
Sourcepub fn set_draggable(&mut self, value: bool)
pub fn set_draggable(&mut self, value: bool)
Setter of the draggable attribute.
HTMLElement.draggable
Sourcepub fn spellcheck(&self) -> bool
pub fn spellcheck(&self) -> bool
Getter of the spellcheck attribute.
HTMLElement.spellcheck
Sourcepub fn set_spellcheck(&mut self, value: bool)
pub fn set_spellcheck(&mut self, value: bool)
Setter of the spellcheck attribute.
HTMLElement.spellcheck
Sourcepub fn writing_suggestions(&self) -> JsString
pub fn writing_suggestions(&self) -> JsString
Getter of the writingSuggestions attribute.
HTMLElement.writingSuggestions
Sourcepub fn set_writing_suggestions(&mut self, value: &JsString)
pub fn set_writing_suggestions(&mut self, value: &JsString)
Setter of the writingSuggestions attribute.
HTMLElement.writingSuggestions
Sourcepub fn autocapitalize(&self) -> JsString
pub fn autocapitalize(&self) -> JsString
Getter of the autocapitalize attribute.
HTMLElement.autocapitalize
Sourcepub fn set_autocapitalize(&mut self, value: &JsString)
pub fn set_autocapitalize(&mut self, value: &JsString)
Setter of the autocapitalize attribute.
HTMLElement.autocapitalize
Sourcepub fn autocorrect(&self) -> bool
pub fn autocorrect(&self) -> bool
Getter of the autocorrect attribute.
HTMLElement.autocorrect
Sourcepub fn set_autocorrect(&mut self, value: bool)
pub fn set_autocorrect(&mut self, value: bool)
Setter of the autocorrect attribute.
HTMLElement.autocorrect
Sourcepub fn inner_text(&self) -> JsString
pub fn inner_text(&self) -> JsString
Getter of the innerText attribute.
HTMLElement.innerText
Sourcepub fn set_inner_text(&mut self, value: &JsString)
pub fn set_inner_text(&mut self, value: &JsString)
Setter of the innerText attribute.
HTMLElement.innerText
Sourcepub fn outer_text(&self) -> JsString
pub fn outer_text(&self) -> JsString
Getter of the outerText attribute.
HTMLElement.outerText
Sourcepub fn set_outer_text(&mut self, value: &JsString)
pub fn set_outer_text(&mut self, value: &JsString)
Setter of the outerText attribute.
HTMLElement.outerText
Sourcepub fn popover(&self) -> JsString
pub fn popover(&self) -> JsString
Getter of the popover attribute.
HTMLElement.popover
Sourcepub fn set_popover(&mut self, value: &JsString)
pub fn set_popover(&mut self, value: &JsString)
Setter of the popover attribute.
HTMLElement.popover
Sourcepub fn scroll_parent(&self) -> Element
pub fn scroll_parent(&self) -> Element
Getter of the scrollParent attribute.
HTMLElement.scrollParent
Sourcepub fn offset_parent(&self) -> Element
pub fn offset_parent(&self) -> Element
Getter of the offsetParent attribute.
HTMLElement.offsetParent
Sourcepub fn offset_top(&self) -> i32
pub fn offset_top(&self) -> i32
Getter of the offsetTop attribute.
HTMLElement.offsetTop
Sourcepub fn offset_left(&self) -> i32
pub fn offset_left(&self) -> i32
Getter of the offsetLeft attribute.
HTMLElement.offsetLeft
Sourcepub fn offset_width(&self) -> i32
pub fn offset_width(&self) -> i32
Getter of the offsetWidth attribute.
HTMLElement.offsetWidth
Sourcepub fn offset_height(&self) -> i32
pub fn offset_height(&self) -> i32
Getter of the offsetHeight attribute.
HTMLElement.offsetHeight
Sourcepub fn edit_context(&self) -> EditContext
pub fn edit_context(&self) -> EditContext
Getter of the editContext attribute.
HTMLElement.editContext
Sourcepub fn set_edit_context(&mut self, value: &EditContext)
pub fn set_edit_context(&mut self, value: &EditContext)
Setter of the editContext attribute.
HTMLElement.editContext
Sourcepub fn style(&self) -> CSSStyleProperties
pub fn style(&self) -> CSSStyleProperties
Getter of the style attribute.
HTMLElement.style
Examples found in repository?
4fn main() {
5 let con = Console::get();
6 let document = window().document();
7 let bodies = document.get_elements_by_tag_name(&"body".into());
8 if bodies.length() == 0 {
9 con.log(&["I Ain't got Nobody!".into()]);
10 return;
11 }
12 let body = bodies.item(0);
13 let mut button = document
14 .create_element(&"BUTTON".into())
15 .dyn_into::<HTMLButtonElement>()
16 .unwrap();
17
18 let style = button.style();
19 style.set_property(&"color".into(), &"red".into());
20 style.set_property(&"background-color".into(), &"#aaf".into());
21 style.set_property(&"border".into(), &"solid".into());
22
23 button.set_text_content(&"Click me".into());
24 button.add_event_listener(
25 &"click".into(),
26 &EventListener::from_closure(move |e: Event| {
27 let p = e.dyn_into::<PointerEvent>().unwrap();
28 con.log(&[p.client_x().into()]);
29 Undefined::VALUE
30 }),
31 );
32 body.append_child(button.dyn_ref::<Node>().unwrap());
33}Sourcepub fn onbeforexrselect(&self) -> Any
pub fn onbeforexrselect(&self) -> Any
Getter of the onbeforexrselect attribute.
HTMLElement.onbeforexrselect
Sourcepub fn set_onbeforexrselect(&mut self, value: &Any)
pub fn set_onbeforexrselect(&mut self, value: &Any)
Setter of the onbeforexrselect attribute.
HTMLElement.onbeforexrselect
Sourcepub fn virtual_keyboard_policy(&self) -> JsString
pub fn virtual_keyboard_policy(&self) -> JsString
Getter of the virtualKeyboardPolicy attribute.
HTMLElement.virtualKeyboardPolicy
Sourcepub fn set_virtual_keyboard_policy(&mut self, value: &JsString)
pub fn set_virtual_keyboard_policy(&mut self, value: &JsString)
Setter of the virtualKeyboardPolicy attribute.
HTMLElement.virtualKeyboardPolicy
Sourcepub fn dataset(&self) -> DOMStringMap
pub fn dataset(&self) -> DOMStringMap
Getter of the dataset attribute.
HTMLElement.dataset
Sourcepub fn nonce(&self) -> JsString
pub fn nonce(&self) -> JsString
Getter of the nonce attribute.
HTMLElement.nonce
Sourcepub fn set_nonce(&mut self, value: &JsString)
pub fn set_nonce(&mut self, value: &JsString)
Setter of the nonce attribute.
HTMLElement.nonce
Sourcepub fn autofocus(&self) -> bool
pub fn autofocus(&self) -> bool
Getter of the autofocus attribute.
HTMLElement.autofocus
Sourcepub fn set_autofocus(&mut self, value: bool)
pub fn set_autofocus(&mut self, value: bool)
Setter of the autofocus attribute.
HTMLElement.autofocus
Sourcepub fn tab_index(&self) -> i32
pub fn tab_index(&self) -> i32
Getter of the tabIndex attribute.
HTMLElement.tabIndex
Sourcepub fn set_tab_index(&mut self, value: i32)
pub fn set_tab_index(&mut self, value: i32)
Setter of the tabIndex attribute.
HTMLElement.tabIndex
Sourcepub fn click(&self) -> Undefined
pub fn click(&self) -> Undefined
The click method.
HTMLElement.click
Sourcepub fn attach_internals(&self) -> ElementInternals
pub fn attach_internals(&self) -> ElementInternals
The attachInternals method.
HTMLElement.attachInternals
Sourcepub fn show_popover(&self) -> Undefined
pub fn show_popover(&self) -> Undefined
The showPopover method.
HTMLElement.showPopover
Sourcepub fn show_popover_with_options(
&self,
options: &ShowPopoverOptions,
) -> Undefined
pub fn show_popover_with_options( &self, options: &ShowPopoverOptions, ) -> Undefined
The showPopover method.
HTMLElement.showPopover
Sourcepub fn hide_popover(&self) -> Undefined
pub fn hide_popover(&self) -> Undefined
The hidePopover method.
HTMLElement.hidePopover
Sourcepub fn toggle_popover(&self) -> bool
pub fn toggle_popover(&self) -> bool
The togglePopover method.
HTMLElement.togglePopover
Sourcepub fn toggle_popover_with_options(&self, options: &Any) -> bool
pub fn toggle_popover_with_options(&self, options: &Any) -> bool
The togglePopover method.
HTMLElement.togglePopover
Sourcepub fn focus(&self) -> Undefined
pub fn focus(&self) -> Undefined
The focus method.
HTMLElement.focus
Sourcepub fn focus_with_options(&self, options: &FocusOptions) -> Undefined
pub fn focus_with_options(&self, options: &FocusOptions) -> Undefined
The focus method.
HTMLElement.focus
Sourcepub fn blur(&self) -> Undefined
pub fn blur(&self) -> Undefined
The blur method.
HTMLElement.blur
Methods from Deref<Target = Element>§
Sourcepub fn namespace_uri(&self) -> JsString
pub fn namespace_uri(&self) -> JsString
Getter of the namespaceURI attribute.
Element.namespaceURI
Sourcepub fn prefix(&self) -> JsString
pub fn prefix(&self) -> JsString
Getter of the prefix attribute.
Element.prefix
Sourcepub fn local_name(&self) -> JsString
pub fn local_name(&self) -> JsString
Getter of the localName attribute.
Element.localName
Sourcepub fn tag_name(&self) -> JsString
pub fn tag_name(&self) -> JsString
Getter of the tagName attribute.
Element.tagName
Sourcepub fn id(&self) -> JsString
pub fn id(&self) -> JsString
Getter of the id attribute.
Element.id
Sourcepub fn set_id(&mut self, value: &JsString)
pub fn set_id(&mut self, value: &JsString)
Setter of the id attribute.
Element.id
Sourcepub fn class_name(&self) -> JsString
pub fn class_name(&self) -> JsString
Getter of the className attribute.
Element.className
Sourcepub fn set_class_name(&mut self, value: &JsString)
pub fn set_class_name(&mut self, value: &JsString)
Setter of the className attribute.
Element.className
Sourcepub fn class_list(&self) -> DOMTokenList
pub fn class_list(&self) -> DOMTokenList
Getter of the classList attribute.
Element.classList
Sourcepub fn slot(&self) -> JsString
pub fn slot(&self) -> JsString
Getter of the slot attribute.
Element.slot
Sourcepub fn set_slot(&mut self, value: &JsString)
pub fn set_slot(&mut self, value: &JsString)
Setter of the slot attribute.
Element.slot
Sourcepub fn attributes(&self) -> NamedNodeMap
pub fn attributes(&self) -> NamedNodeMap
Getter of the attributes attribute.
Element.attributes
Sourcepub fn shadow_root(&self) -> ShadowRoot
pub fn shadow_root(&self) -> ShadowRoot
Getter of the shadowRoot attribute.
Element.shadowRoot
Sourcepub fn custom_element_registry(&self) -> CustomElementRegistry
pub fn custom_element_registry(&self) -> CustomElementRegistry
Getter of the customElementRegistry attribute.
Element.customElementRegistry
Sourcepub fn part(&self) -> DOMTokenList
pub fn part(&self) -> DOMTokenList
Getter of the part attribute.
Element.part
Sourcepub fn scroll_top(&self) -> f64
pub fn scroll_top(&self) -> f64
Getter of the scrollTop attribute.
Element.scrollTop
Sourcepub fn set_scroll_top(&mut self, value: f64)
pub fn set_scroll_top(&mut self, value: f64)
Setter of the scrollTop attribute.
Element.scrollTop
Sourcepub fn scroll_left(&self) -> f64
pub fn scroll_left(&self) -> f64
Getter of the scrollLeft attribute.
Element.scrollLeft
Sourcepub fn set_scroll_left(&mut self, value: f64)
pub fn set_scroll_left(&mut self, value: f64)
Setter of the scrollLeft attribute.
Element.scrollLeft
Sourcepub fn scroll_width(&self) -> i32
pub fn scroll_width(&self) -> i32
Getter of the scrollWidth attribute.
Element.scrollWidth
Sourcepub fn scroll_height(&self) -> i32
pub fn scroll_height(&self) -> i32
Getter of the scrollHeight attribute.
Element.scrollHeight
Sourcepub fn client_top(&self) -> i32
pub fn client_top(&self) -> i32
Getter of the clientTop attribute.
Element.clientTop
Sourcepub fn client_left(&self) -> i32
pub fn client_left(&self) -> i32
Getter of the clientLeft attribute.
Element.clientLeft
Sourcepub fn client_width(&self) -> i32
pub fn client_width(&self) -> i32
Getter of the clientWidth attribute.
Element.clientWidth
Sourcepub fn client_height(&self) -> i32
pub fn client_height(&self) -> i32
Getter of the clientHeight attribute.
Element.clientHeight
Sourcepub fn current_css_zoom(&self) -> f64
pub fn current_css_zoom(&self) -> f64
Getter of the currentCSSZoom attribute.
Element.currentCSSZoom
Sourcepub fn element_timing(&self) -> JsString
pub fn element_timing(&self) -> JsString
Getter of the elementTiming attribute.
Element.elementTiming
Sourcepub fn set_element_timing(&mut self, value: &JsString)
pub fn set_element_timing(&mut self, value: &JsString)
Setter of the elementTiming attribute.
Element.elementTiming
Sourcepub fn onfullscreenchange(&self) -> Any
pub fn onfullscreenchange(&self) -> Any
Getter of the onfullscreenchange attribute.
Element.onfullscreenchange
Sourcepub fn set_onfullscreenchange(&mut self, value: &Any)
pub fn set_onfullscreenchange(&mut self, value: &Any)
Setter of the onfullscreenchange attribute.
Element.onfullscreenchange
Sourcepub fn onfullscreenerror(&self) -> Any
pub fn onfullscreenerror(&self) -> Any
Getter of the onfullscreenerror attribute.
Element.onfullscreenerror
Sourcepub fn set_onfullscreenerror(&mut self, value: &Any)
pub fn set_onfullscreenerror(&mut self, value: &Any)
Setter of the onfullscreenerror attribute.
Element.onfullscreenerror
Sourcepub fn inner_html(&self) -> Any
pub fn inner_html(&self) -> Any
Getter of the innerHTML attribute.
Element.innerHTML
Sourcepub fn set_inner_html(&mut self, value: &Any)
pub fn set_inner_html(&mut self, value: &Any)
Setter of the innerHTML attribute.
Element.innerHTML
Sourcepub fn outer_html(&self) -> Any
pub fn outer_html(&self) -> Any
Getter of the outerHTML attribute.
Element.outerHTML
Sourcepub fn set_outer_html(&mut self, value: &Any)
pub fn set_outer_html(&mut self, value: &Any)
Setter of the outerHTML attribute.
Element.outerHTML
Sourcepub fn region_overset(&self) -> JsString
pub fn region_overset(&self) -> JsString
Getter of the regionOverset attribute.
Element.regionOverset
Sourcepub fn children(&self) -> HTMLCollection
pub fn children(&self) -> HTMLCollection
Getter of the children attribute.
Element.children
Sourcepub fn first_element_child(&self) -> Element
pub fn first_element_child(&self) -> Element
Getter of the firstElementChild attribute.
Element.firstElementChild
Sourcepub fn last_element_child(&self) -> Element
pub fn last_element_child(&self) -> Element
Getter of the lastElementChild attribute.
Element.lastElementChild
Sourcepub fn child_element_count(&self) -> u32
pub fn child_element_count(&self) -> u32
Getter of the childElementCount attribute.
Element.childElementCount
Sourcepub fn previous_element_sibling(&self) -> Element
pub fn previous_element_sibling(&self) -> Element
Getter of the previousElementSibling attribute.
Element.previousElementSibling
Sourcepub fn next_element_sibling(&self) -> Element
pub fn next_element_sibling(&self) -> Element
Getter of the nextElementSibling attribute.
Element.nextElementSibling
Sourcepub fn assigned_slot(&self) -> HTMLSlotElement
pub fn assigned_slot(&self) -> HTMLSlotElement
Getter of the assignedSlot attribute.
Element.assignedSlot
Sourcepub fn role(&self) -> JsString
pub fn role(&self) -> JsString
Getter of the role attribute.
Element.role
Sourcepub fn set_role(&mut self, value: &JsString)
pub fn set_role(&mut self, value: &JsString)
Setter of the role attribute.
Element.role
Sourcepub fn aria_active_descendant_element(&self) -> Element
pub fn aria_active_descendant_element(&self) -> Element
Getter of the ariaActiveDescendantElement attribute.
Element.ariaActiveDescendantElement
Sourcepub fn set_aria_active_descendant_element(&mut self, value: &Element)
pub fn set_aria_active_descendant_element(&mut self, value: &Element)
Setter of the ariaActiveDescendantElement attribute.
Element.ariaActiveDescendantElement
Sourcepub fn aria_atomic(&self) -> JsString
pub fn aria_atomic(&self) -> JsString
Getter of the ariaAtomic attribute.
Element.ariaAtomic
Sourcepub fn set_aria_atomic(&mut self, value: &JsString)
pub fn set_aria_atomic(&mut self, value: &JsString)
Setter of the ariaAtomic attribute.
Element.ariaAtomic
Sourcepub fn aria_auto_complete(&self) -> JsString
pub fn aria_auto_complete(&self) -> JsString
Getter of the ariaAutoComplete attribute.
Element.ariaAutoComplete
Sourcepub fn set_aria_auto_complete(&mut self, value: &JsString)
pub fn set_aria_auto_complete(&mut self, value: &JsString)
Setter of the ariaAutoComplete attribute.
Element.ariaAutoComplete
Sourcepub fn aria_braille_label(&self) -> JsString
pub fn aria_braille_label(&self) -> JsString
Getter of the ariaBrailleLabel attribute.
Element.ariaBrailleLabel
Sourcepub fn set_aria_braille_label(&mut self, value: &JsString)
pub fn set_aria_braille_label(&mut self, value: &JsString)
Setter of the ariaBrailleLabel attribute.
Element.ariaBrailleLabel
Sourcepub fn aria_braille_role_description(&self) -> JsString
pub fn aria_braille_role_description(&self) -> JsString
Getter of the ariaBrailleRoleDescription attribute.
Element.ariaBrailleRoleDescription
Sourcepub fn set_aria_braille_role_description(&mut self, value: &JsString)
pub fn set_aria_braille_role_description(&mut self, value: &JsString)
Setter of the ariaBrailleRoleDescription attribute.
Element.ariaBrailleRoleDescription
Sourcepub fn aria_busy(&self) -> JsString
pub fn aria_busy(&self) -> JsString
Getter of the ariaBusy attribute.
Element.ariaBusy
Sourcepub fn set_aria_busy(&mut self, value: &JsString)
pub fn set_aria_busy(&mut self, value: &JsString)
Setter of the ariaBusy attribute.
Element.ariaBusy
Sourcepub fn aria_checked(&self) -> JsString
pub fn aria_checked(&self) -> JsString
Getter of the ariaChecked attribute.
Element.ariaChecked
Sourcepub fn set_aria_checked(&mut self, value: &JsString)
pub fn set_aria_checked(&mut self, value: &JsString)
Setter of the ariaChecked attribute.
Element.ariaChecked
Sourcepub fn aria_col_count(&self) -> JsString
pub fn aria_col_count(&self) -> JsString
Getter of the ariaColCount attribute.
Element.ariaColCount
Sourcepub fn set_aria_col_count(&mut self, value: &JsString)
pub fn set_aria_col_count(&mut self, value: &JsString)
Setter of the ariaColCount attribute.
Element.ariaColCount
Sourcepub fn aria_col_index(&self) -> JsString
pub fn aria_col_index(&self) -> JsString
Getter of the ariaColIndex attribute.
Element.ariaColIndex
Sourcepub fn set_aria_col_index(&mut self, value: &JsString)
pub fn set_aria_col_index(&mut self, value: &JsString)
Setter of the ariaColIndex attribute.
Element.ariaColIndex
Sourcepub fn aria_col_index_text(&self) -> JsString
pub fn aria_col_index_text(&self) -> JsString
Getter of the ariaColIndexText attribute.
Element.ariaColIndexText
Sourcepub fn set_aria_col_index_text(&mut self, value: &JsString)
pub fn set_aria_col_index_text(&mut self, value: &JsString)
Setter of the ariaColIndexText attribute.
Element.ariaColIndexText
Sourcepub fn aria_col_span(&self) -> JsString
pub fn aria_col_span(&self) -> JsString
Getter of the ariaColSpan attribute.
Element.ariaColSpan
Sourcepub fn set_aria_col_span(&mut self, value: &JsString)
pub fn set_aria_col_span(&mut self, value: &JsString)
Setter of the ariaColSpan attribute.
Element.ariaColSpan
Sourcepub fn aria_controls_elements(&self) -> TypedArray<Element>
pub fn aria_controls_elements(&self) -> TypedArray<Element>
Getter of the ariaControlsElements attribute.
Element.ariaControlsElements
Sourcepub fn set_aria_controls_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_controls_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaControlsElements attribute.
Element.ariaControlsElements
Sourcepub fn aria_current(&self) -> JsString
pub fn aria_current(&self) -> JsString
Getter of the ariaCurrent attribute.
Element.ariaCurrent
Sourcepub fn set_aria_current(&mut self, value: &JsString)
pub fn set_aria_current(&mut self, value: &JsString)
Setter of the ariaCurrent attribute.
Element.ariaCurrent
Sourcepub fn aria_described_by_elements(&self) -> TypedArray<Element>
pub fn aria_described_by_elements(&self) -> TypedArray<Element>
Getter of the ariaDescribedByElements attribute.
Element.ariaDescribedByElements
Sourcepub fn set_aria_described_by_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_described_by_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaDescribedByElements attribute.
Element.ariaDescribedByElements
Sourcepub fn aria_description(&self) -> JsString
pub fn aria_description(&self) -> JsString
Getter of the ariaDescription attribute.
Element.ariaDescription
Sourcepub fn set_aria_description(&mut self, value: &JsString)
pub fn set_aria_description(&mut self, value: &JsString)
Setter of the ariaDescription attribute.
Element.ariaDescription
Sourcepub fn aria_details_elements(&self) -> TypedArray<Element>
pub fn aria_details_elements(&self) -> TypedArray<Element>
Getter of the ariaDetailsElements attribute.
Element.ariaDetailsElements
Sourcepub fn set_aria_details_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_details_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaDetailsElements attribute.
Element.ariaDetailsElements
Sourcepub fn aria_disabled(&self) -> JsString
pub fn aria_disabled(&self) -> JsString
Getter of the ariaDisabled attribute.
Element.ariaDisabled
Sourcepub fn set_aria_disabled(&mut self, value: &JsString)
pub fn set_aria_disabled(&mut self, value: &JsString)
Setter of the ariaDisabled attribute.
Element.ariaDisabled
Sourcepub fn aria_error_message_elements(&self) -> TypedArray<Element>
pub fn aria_error_message_elements(&self) -> TypedArray<Element>
Getter of the ariaErrorMessageElements attribute.
Element.ariaErrorMessageElements
Sourcepub fn set_aria_error_message_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_error_message_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaErrorMessageElements attribute.
Element.ariaErrorMessageElements
Sourcepub fn aria_expanded(&self) -> JsString
pub fn aria_expanded(&self) -> JsString
Getter of the ariaExpanded attribute.
Element.ariaExpanded
Sourcepub fn set_aria_expanded(&mut self, value: &JsString)
pub fn set_aria_expanded(&mut self, value: &JsString)
Setter of the ariaExpanded attribute.
Element.ariaExpanded
Sourcepub fn aria_flow_to_elements(&self) -> TypedArray<Element>
pub fn aria_flow_to_elements(&self) -> TypedArray<Element>
Getter of the ariaFlowToElements attribute.
Element.ariaFlowToElements
Sourcepub fn set_aria_flow_to_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_flow_to_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaFlowToElements attribute.
Element.ariaFlowToElements
Sourcepub fn aria_has_popup(&self) -> JsString
pub fn aria_has_popup(&self) -> JsString
Getter of the ariaHasPopup attribute.
Element.ariaHasPopup
Sourcepub fn set_aria_has_popup(&mut self, value: &JsString)
pub fn set_aria_has_popup(&mut self, value: &JsString)
Setter of the ariaHasPopup attribute.
Element.ariaHasPopup
Getter of the ariaHidden attribute.
Element.ariaHidden
Setter of the ariaHidden attribute.
Element.ariaHidden
Sourcepub fn aria_invalid(&self) -> JsString
pub fn aria_invalid(&self) -> JsString
Getter of the ariaInvalid attribute.
Element.ariaInvalid
Sourcepub fn set_aria_invalid(&mut self, value: &JsString)
pub fn set_aria_invalid(&mut self, value: &JsString)
Setter of the ariaInvalid attribute.
Element.ariaInvalid
Sourcepub fn aria_key_shortcuts(&self) -> JsString
pub fn aria_key_shortcuts(&self) -> JsString
Getter of the ariaKeyShortcuts attribute.
Element.ariaKeyShortcuts
Sourcepub fn set_aria_key_shortcuts(&mut self, value: &JsString)
pub fn set_aria_key_shortcuts(&mut self, value: &JsString)
Setter of the ariaKeyShortcuts attribute.
Element.ariaKeyShortcuts
Sourcepub fn aria_label(&self) -> JsString
pub fn aria_label(&self) -> JsString
Getter of the ariaLabel attribute.
Element.ariaLabel
Sourcepub fn set_aria_label(&mut self, value: &JsString)
pub fn set_aria_label(&mut self, value: &JsString)
Setter of the ariaLabel attribute.
Element.ariaLabel
Sourcepub fn aria_labelled_by_elements(&self) -> TypedArray<Element>
pub fn aria_labelled_by_elements(&self) -> TypedArray<Element>
Getter of the ariaLabelledByElements attribute.
Element.ariaLabelledByElements
Sourcepub fn set_aria_labelled_by_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_labelled_by_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaLabelledByElements attribute.
Element.ariaLabelledByElements
Sourcepub fn aria_level(&self) -> JsString
pub fn aria_level(&self) -> JsString
Getter of the ariaLevel attribute.
Element.ariaLevel
Sourcepub fn set_aria_level(&mut self, value: &JsString)
pub fn set_aria_level(&mut self, value: &JsString)
Setter of the ariaLevel attribute.
Element.ariaLevel
Sourcepub fn aria_live(&self) -> JsString
pub fn aria_live(&self) -> JsString
Getter of the ariaLive attribute.
Element.ariaLive
Sourcepub fn set_aria_live(&mut self, value: &JsString)
pub fn set_aria_live(&mut self, value: &JsString)
Setter of the ariaLive attribute.
Element.ariaLive
Sourcepub fn aria_modal(&self) -> JsString
pub fn aria_modal(&self) -> JsString
Getter of the ariaModal attribute.
Element.ariaModal
Sourcepub fn set_aria_modal(&mut self, value: &JsString)
pub fn set_aria_modal(&mut self, value: &JsString)
Setter of the ariaModal attribute.
Element.ariaModal
Sourcepub fn aria_multi_line(&self) -> JsString
pub fn aria_multi_line(&self) -> JsString
Getter of the ariaMultiLine attribute.
Element.ariaMultiLine
Sourcepub fn set_aria_multi_line(&mut self, value: &JsString)
pub fn set_aria_multi_line(&mut self, value: &JsString)
Setter of the ariaMultiLine attribute.
Element.ariaMultiLine
Sourcepub fn aria_multi_selectable(&self) -> JsString
pub fn aria_multi_selectable(&self) -> JsString
Getter of the ariaMultiSelectable attribute.
Element.ariaMultiSelectable
Sourcepub fn set_aria_multi_selectable(&mut self, value: &JsString)
pub fn set_aria_multi_selectable(&mut self, value: &JsString)
Setter of the ariaMultiSelectable attribute.
Element.ariaMultiSelectable
Sourcepub fn aria_orientation(&self) -> JsString
pub fn aria_orientation(&self) -> JsString
Getter of the ariaOrientation attribute.
Element.ariaOrientation
Sourcepub fn set_aria_orientation(&mut self, value: &JsString)
pub fn set_aria_orientation(&mut self, value: &JsString)
Setter of the ariaOrientation attribute.
Element.ariaOrientation
Sourcepub fn aria_owns_elements(&self) -> TypedArray<Element>
pub fn aria_owns_elements(&self) -> TypedArray<Element>
Getter of the ariaOwnsElements attribute.
Element.ariaOwnsElements
Sourcepub fn set_aria_owns_elements(&mut self, value: &TypedArray<Element>)
pub fn set_aria_owns_elements(&mut self, value: &TypedArray<Element>)
Setter of the ariaOwnsElements attribute.
Element.ariaOwnsElements
Sourcepub fn aria_placeholder(&self) -> JsString
pub fn aria_placeholder(&self) -> JsString
Getter of the ariaPlaceholder attribute.
Element.ariaPlaceholder
Sourcepub fn set_aria_placeholder(&mut self, value: &JsString)
pub fn set_aria_placeholder(&mut self, value: &JsString)
Setter of the ariaPlaceholder attribute.
Element.ariaPlaceholder
Sourcepub fn aria_pos_in_set(&self) -> JsString
pub fn aria_pos_in_set(&self) -> JsString
Getter of the ariaPosInSet attribute.
Element.ariaPosInSet
Sourcepub fn set_aria_pos_in_set(&mut self, value: &JsString)
pub fn set_aria_pos_in_set(&mut self, value: &JsString)
Setter of the ariaPosInSet attribute.
Element.ariaPosInSet
Sourcepub fn aria_pressed(&self) -> JsString
pub fn aria_pressed(&self) -> JsString
Getter of the ariaPressed attribute.
Element.ariaPressed
Sourcepub fn set_aria_pressed(&mut self, value: &JsString)
pub fn set_aria_pressed(&mut self, value: &JsString)
Setter of the ariaPressed attribute.
Element.ariaPressed
Sourcepub fn aria_read_only(&self) -> JsString
pub fn aria_read_only(&self) -> JsString
Getter of the ariaReadOnly attribute.
Element.ariaReadOnly
Sourcepub fn set_aria_read_only(&mut self, value: &JsString)
pub fn set_aria_read_only(&mut self, value: &JsString)
Setter of the ariaReadOnly attribute.
Element.ariaReadOnly
Sourcepub fn aria_relevant(&self) -> JsString
pub fn aria_relevant(&self) -> JsString
Getter of the ariaRelevant attribute.
Element.ariaRelevant
Sourcepub fn set_aria_relevant(&mut self, value: &JsString)
pub fn set_aria_relevant(&mut self, value: &JsString)
Setter of the ariaRelevant attribute.
Element.ariaRelevant
Sourcepub fn aria_required(&self) -> JsString
pub fn aria_required(&self) -> JsString
Getter of the ariaRequired attribute.
Element.ariaRequired
Sourcepub fn set_aria_required(&mut self, value: &JsString)
pub fn set_aria_required(&mut self, value: &JsString)
Setter of the ariaRequired attribute.
Element.ariaRequired
Sourcepub fn aria_role_description(&self) -> JsString
pub fn aria_role_description(&self) -> JsString
Getter of the ariaRoleDescription attribute.
Element.ariaRoleDescription
Sourcepub fn set_aria_role_description(&mut self, value: &JsString)
pub fn set_aria_role_description(&mut self, value: &JsString)
Setter of the ariaRoleDescription attribute.
Element.ariaRoleDescription
Sourcepub fn aria_row_count(&self) -> JsString
pub fn aria_row_count(&self) -> JsString
Getter of the ariaRowCount attribute.
Element.ariaRowCount
Sourcepub fn set_aria_row_count(&mut self, value: &JsString)
pub fn set_aria_row_count(&mut self, value: &JsString)
Setter of the ariaRowCount attribute.
Element.ariaRowCount
Sourcepub fn aria_row_index(&self) -> JsString
pub fn aria_row_index(&self) -> JsString
Getter of the ariaRowIndex attribute.
Element.ariaRowIndex
Sourcepub fn set_aria_row_index(&mut self, value: &JsString)
pub fn set_aria_row_index(&mut self, value: &JsString)
Setter of the ariaRowIndex attribute.
Element.ariaRowIndex
Sourcepub fn aria_row_index_text(&self) -> JsString
pub fn aria_row_index_text(&self) -> JsString
Getter of the ariaRowIndexText attribute.
Element.ariaRowIndexText
Sourcepub fn set_aria_row_index_text(&mut self, value: &JsString)
pub fn set_aria_row_index_text(&mut self, value: &JsString)
Setter of the ariaRowIndexText attribute.
Element.ariaRowIndexText
Sourcepub fn aria_row_span(&self) -> JsString
pub fn aria_row_span(&self) -> JsString
Getter of the ariaRowSpan attribute.
Element.ariaRowSpan
Sourcepub fn set_aria_row_span(&mut self, value: &JsString)
pub fn set_aria_row_span(&mut self, value: &JsString)
Setter of the ariaRowSpan attribute.
Element.ariaRowSpan
Sourcepub fn aria_selected(&self) -> JsString
pub fn aria_selected(&self) -> JsString
Getter of the ariaSelected attribute.
Element.ariaSelected
Sourcepub fn set_aria_selected(&mut self, value: &JsString)
pub fn set_aria_selected(&mut self, value: &JsString)
Setter of the ariaSelected attribute.
Element.ariaSelected
Sourcepub fn aria_set_size(&self) -> JsString
pub fn aria_set_size(&self) -> JsString
Getter of the ariaSetSize attribute.
Element.ariaSetSize
Sourcepub fn set_aria_set_size(&mut self, value: &JsString)
pub fn set_aria_set_size(&mut self, value: &JsString)
Setter of the ariaSetSize attribute.
Element.ariaSetSize
Sourcepub fn aria_sort(&self) -> JsString
pub fn aria_sort(&self) -> JsString
Getter of the ariaSort attribute.
Element.ariaSort
Sourcepub fn set_aria_sort(&mut self, value: &JsString)
pub fn set_aria_sort(&mut self, value: &JsString)
Setter of the ariaSort attribute.
Element.ariaSort
Sourcepub fn aria_value_max(&self) -> JsString
pub fn aria_value_max(&self) -> JsString
Getter of the ariaValueMax attribute.
Element.ariaValueMax
Sourcepub fn set_aria_value_max(&mut self, value: &JsString)
pub fn set_aria_value_max(&mut self, value: &JsString)
Setter of the ariaValueMax attribute.
Element.ariaValueMax
Sourcepub fn aria_value_min(&self) -> JsString
pub fn aria_value_min(&self) -> JsString
Getter of the ariaValueMin attribute.
Element.ariaValueMin
Sourcepub fn set_aria_value_min(&mut self, value: &JsString)
pub fn set_aria_value_min(&mut self, value: &JsString)
Setter of the ariaValueMin attribute.
Element.ariaValueMin
Sourcepub fn aria_value_now(&self) -> JsString
pub fn aria_value_now(&self) -> JsString
Getter of the ariaValueNow attribute.
Element.ariaValueNow
Sourcepub fn set_aria_value_now(&mut self, value: &JsString)
pub fn set_aria_value_now(&mut self, value: &JsString)
Setter of the ariaValueNow attribute.
Element.ariaValueNow
Sourcepub fn aria_value_text(&self) -> JsString
pub fn aria_value_text(&self) -> JsString
Getter of the ariaValueText attribute.
Element.ariaValueText
Sourcepub fn set_aria_value_text(&mut self, value: &JsString)
pub fn set_aria_value_text(&mut self, value: &JsString)
Setter of the ariaValueText attribute.
Element.ariaValueText
Sourcepub fn has_attributes(&self) -> bool
pub fn has_attributes(&self) -> bool
The hasAttributes method.
Element.hasAttributes
Sourcepub fn get_attribute_names(&self) -> TypedArray<JsString>
pub fn get_attribute_names(&self) -> TypedArray<JsString>
The getAttributeNames method.
Element.getAttributeNames
Sourcepub fn get_attribute(&self, qualified_name: &JsString) -> JsString
pub fn get_attribute(&self, qualified_name: &JsString) -> JsString
The getAttribute method.
Element.getAttribute
Sourcepub fn get_attribute_ns(
&self,
namespace: &JsString,
local_name: &JsString,
) -> JsString
pub fn get_attribute_ns( &self, namespace: &JsString, local_name: &JsString, ) -> JsString
The getAttributeNS method.
Element.getAttributeNS
Sourcepub fn set_attribute(
&self,
qualified_name: &JsString,
value: &JsString,
) -> Undefined
pub fn set_attribute( &self, qualified_name: &JsString, value: &JsString, ) -> Undefined
The setAttribute method.
Element.setAttribute
Sourcepub fn set_attribute_ns(
&self,
namespace: &JsString,
qualified_name: &JsString,
value: &JsString,
) -> Undefined
pub fn set_attribute_ns( &self, namespace: &JsString, qualified_name: &JsString, value: &JsString, ) -> Undefined
The setAttributeNS method.
Element.setAttributeNS
Sourcepub fn remove_attribute(&self, qualified_name: &JsString) -> Undefined
pub fn remove_attribute(&self, qualified_name: &JsString) -> Undefined
The removeAttribute method.
Element.removeAttribute
Sourcepub fn remove_attribute_ns(
&self,
namespace: &JsString,
local_name: &JsString,
) -> Undefined
pub fn remove_attribute_ns( &self, namespace: &JsString, local_name: &JsString, ) -> Undefined
The removeAttributeNS method.
Element.removeAttributeNS
Sourcepub fn toggle_attribute(&self, qualified_name: &JsString) -> bool
pub fn toggle_attribute(&self, qualified_name: &JsString) -> bool
The toggleAttribute method.
Element.toggleAttribute
Sourcepub fn toggle_attribute_with_force(
&self,
qualified_name: &JsString,
force: bool,
) -> bool
pub fn toggle_attribute_with_force( &self, qualified_name: &JsString, force: bool, ) -> bool
The toggleAttribute method.
Element.toggleAttribute
Sourcepub fn has_attribute(&self, qualified_name: &JsString) -> bool
pub fn has_attribute(&self, qualified_name: &JsString) -> bool
The hasAttribute method.
Element.hasAttribute
Sourcepub fn has_attribute_ns(
&self,
namespace: &JsString,
local_name: &JsString,
) -> bool
pub fn has_attribute_ns( &self, namespace: &JsString, local_name: &JsString, ) -> bool
The hasAttributeNS method.
Element.hasAttributeNS
Sourcepub fn get_attribute_node(&self, qualified_name: &JsString) -> Attr
pub fn get_attribute_node(&self, qualified_name: &JsString) -> Attr
The getAttributeNode method.
Element.getAttributeNode
Sourcepub fn get_attribute_node_ns(
&self,
namespace: &JsString,
local_name: &JsString,
) -> Attr
pub fn get_attribute_node_ns( &self, namespace: &JsString, local_name: &JsString, ) -> Attr
The getAttributeNodeNS method.
Element.getAttributeNodeNS
Sourcepub fn set_attribute_node(&self, attr: &Attr) -> Attr
pub fn set_attribute_node(&self, attr: &Attr) -> Attr
The setAttributeNode method.
Element.setAttributeNode
Sourcepub fn set_attribute_node_ns(&self, attr: &Attr) -> Attr
pub fn set_attribute_node_ns(&self, attr: &Attr) -> Attr
The setAttributeNodeNS method.
Element.setAttributeNodeNS
Sourcepub fn remove_attribute_node(&self, attr: &Attr) -> Attr
pub fn remove_attribute_node(&self, attr: &Attr) -> Attr
The removeAttributeNode method.
Element.removeAttributeNode
Sourcepub fn attach_shadow(&self, init: &ShadowRootInit) -> ShadowRoot
pub fn attach_shadow(&self, init: &ShadowRootInit) -> ShadowRoot
The attachShadow method.
Element.attachShadow
Sourcepub fn closest(&self, selectors: &JsString) -> Element
pub fn closest(&self, selectors: &JsString) -> Element
The closest method.
Element.closest
Sourcepub fn matches(&self, selectors: &JsString) -> bool
pub fn matches(&self, selectors: &JsString) -> bool
The matches method.
Element.matches
Sourcepub fn webkit_matches_selector(&self, selectors: &JsString) -> bool
pub fn webkit_matches_selector(&self, selectors: &JsString) -> bool
The webkitMatchesSelector method.
Element.webkitMatchesSelector
Sourcepub fn get_elements_by_tag_name(
&self,
qualified_name: &JsString,
) -> HTMLCollection
pub fn get_elements_by_tag_name( &self, qualified_name: &JsString, ) -> HTMLCollection
The getElementsByTagName method.
Element.getElementsByTagName
Sourcepub fn get_elements_by_tag_name_ns(
&self,
namespace: &JsString,
local_name: &JsString,
) -> HTMLCollection
pub fn get_elements_by_tag_name_ns( &self, namespace: &JsString, local_name: &JsString, ) -> HTMLCollection
The getElementsByTagNameNS method.
Element.getElementsByTagNameNS
Sourcepub fn get_elements_by_class_name(
&self,
class_names: &JsString,
) -> HTMLCollection
pub fn get_elements_by_class_name( &self, class_names: &JsString, ) -> HTMLCollection
The getElementsByClassName method.
Element.getElementsByClassName
Sourcepub fn insert_adjacent_element(
&self,
where_: &JsString,
element: &Element,
) -> Element
pub fn insert_adjacent_element( &self, where_: &JsString, element: &Element, ) -> Element
The insertAdjacentElement method.
Element.insertAdjacentElement
Sourcepub fn insert_adjacent_text(
&self,
where_: &JsString,
data: &JsString,
) -> Undefined
pub fn insert_adjacent_text( &self, where_: &JsString, data: &JsString, ) -> Undefined
The insertAdjacentText method.
Element.insertAdjacentText
The getSpatialNavigationContainer method.
Element.getSpatialNavigationContainer
Sourcepub fn focusable_areas(&self) -> TypedArray<Node>
pub fn focusable_areas(&self) -> TypedArray<Node>
The focusableAreas method.
Element.focusableAreas
Sourcepub fn focusable_areas_with_option(
&self,
option: &FocusableAreasOption,
) -> TypedArray<Node>
pub fn focusable_areas_with_option( &self, option: &FocusableAreasOption, ) -> TypedArray<Node>
The focusableAreas method.
Element.focusableAreas
The spatialNavigationSearch method.
Element.spatialNavigationSearch
The spatialNavigationSearch method.
Element.spatialNavigationSearch
Sourcepub fn pseudo(&self, type_: &JsString) -> CSSPseudoElement
pub fn pseudo(&self, type_: &JsString) -> CSSPseudoElement
The pseudo method.
Element.pseudo
Sourcepub fn computed_style_map(&self) -> StylePropertyMapReadOnly
pub fn computed_style_map(&self) -> StylePropertyMapReadOnly
The computedStyleMap method.
Element.computedStyleMap
Sourcepub fn get_client_rects(&self) -> DOMRectList
pub fn get_client_rects(&self) -> DOMRectList
The getClientRects method.
Element.getClientRects
Sourcepub fn get_bounding_client_rect(&self) -> DOMRect
pub fn get_bounding_client_rect(&self) -> DOMRect
The getBoundingClientRect method.
Element.getBoundingClientRect
Sourcepub fn check_visibility(&self) -> bool
pub fn check_visibility(&self) -> bool
The checkVisibility method.
Element.checkVisibility
Sourcepub fn check_visibility_with_options(
&self,
options: &CheckVisibilityOptions,
) -> bool
pub fn check_visibility_with_options( &self, options: &CheckVisibilityOptions, ) -> bool
The checkVisibility method.
Element.checkVisibility
Sourcepub fn scroll_into_view(&self) -> Undefined
pub fn scroll_into_view(&self) -> Undefined
The scrollIntoView method.
Element.scrollIntoView
Sourcepub fn scroll_into_view_with_arg(&self, arg: &Any) -> Undefined
pub fn scroll_into_view_with_arg(&self, arg: &Any) -> Undefined
The scrollIntoView method.
Element.scrollIntoView
Sourcepub fn scroll(&self) -> Undefined
pub fn scroll(&self) -> Undefined
The scroll method.
Element.scroll
Sourcepub fn scroll_with_options(&self, options: &ScrollToOptions) -> Undefined
pub fn scroll_with_options(&self, options: &ScrollToOptions) -> Undefined
The scroll method.
Element.scroll
Sourcepub fn scroll_with_x_and_y(&self, x: f64, y: f64) -> Undefined
pub fn scroll_with_x_and_y(&self, x: f64, y: f64) -> Undefined
The scroll method.
Element.scroll
Sourcepub fn scroll_to(&self) -> Undefined
pub fn scroll_to(&self) -> Undefined
The scrollTo method.
Element.scrollTo
Sourcepub fn scroll_to_with_options(&self, options: &ScrollToOptions) -> Undefined
pub fn scroll_to_with_options(&self, options: &ScrollToOptions) -> Undefined
The scrollTo method.
Element.scrollTo
Sourcepub fn scroll_to_with_x_and_y(&self, x: f64, y: f64) -> Undefined
pub fn scroll_to_with_x_and_y(&self, x: f64, y: f64) -> Undefined
The scrollTo method.
Element.scrollTo
Sourcepub fn scroll_by(&self) -> Undefined
pub fn scroll_by(&self) -> Undefined
The scrollBy method.
Element.scrollBy
Sourcepub fn scroll_by_with_options(&self, options: &ScrollToOptions) -> Undefined
pub fn scroll_by_with_options(&self, options: &ScrollToOptions) -> Undefined
The scrollBy method.
Element.scrollBy
Sourcepub fn scroll_by_with_x_and_y(&self, x: f64, y: f64) -> Undefined
pub fn scroll_by_with_x_and_y(&self, x: f64, y: f64) -> Undefined
The scrollBy method.
Element.scrollBy
Sourcepub fn request_fullscreen(&self) -> Promise<Undefined>
pub fn request_fullscreen(&self) -> Promise<Undefined>
The requestFullscreen method.
Element.requestFullscreen
Sourcepub fn request_fullscreen_with_options(
&self,
options: &FullscreenOptions,
) -> Promise<Undefined>
pub fn request_fullscreen_with_options( &self, options: &FullscreenOptions, ) -> Promise<Undefined>
The requestFullscreen method.
Element.requestFullscreen
Sourcepub fn set_html_unsafe(&self, html: &Any) -> Undefined
pub fn set_html_unsafe(&self, html: &Any) -> Undefined
The setHTMLUnsafe method.
Element.setHTMLUnsafe
Sourcepub fn get_html(&self) -> JsString
pub fn get_html(&self) -> JsString
The getHTML method.
Element.getHTML
Sourcepub fn get_html_with_options(&self, options: &GetHTMLOptions) -> JsString
pub fn get_html_with_options(&self, options: &GetHTMLOptions) -> JsString
The getHTML method.
Element.getHTML
Sourcepub fn insert_adjacent_html(
&self,
position: &JsString,
string: &Any,
) -> Undefined
pub fn insert_adjacent_html( &self, position: &JsString, string: &Any, ) -> Undefined
The insertAdjacentHTML method.
Element.insertAdjacentHTML
Sourcepub fn set_pointer_capture(&self, pointer_id: i32) -> Undefined
pub fn set_pointer_capture(&self, pointer_id: i32) -> Undefined
The setPointerCapture method.
Element.setPointerCapture
Sourcepub fn release_pointer_capture(&self, pointer_id: i32) -> Undefined
pub fn release_pointer_capture(&self, pointer_id: i32) -> Undefined
The releasePointerCapture method.
Element.releasePointerCapture
Sourcepub fn has_pointer_capture(&self, pointer_id: i32) -> bool
pub fn has_pointer_capture(&self, pointer_id: i32) -> bool
The hasPointerCapture method.
Element.hasPointerCapture
Sourcepub fn request_pointer_lock(&self) -> Promise<Undefined>
pub fn request_pointer_lock(&self) -> Promise<Undefined>
The requestPointerLock method.
Element.requestPointerLock
Sourcepub fn request_pointer_lock_with_options(
&self,
options: &PointerLockOptions,
) -> Promise<Undefined>
pub fn request_pointer_lock_with_options( &self, options: &PointerLockOptions, ) -> Promise<Undefined>
The requestPointerLock method.
Element.requestPointerLock
Sourcepub fn get_region_flow_ranges(&self) -> TypedArray<Range>
pub fn get_region_flow_ranges(&self) -> TypedArray<Range>
The getRegionFlowRanges method.
Element.getRegionFlowRanges
Sourcepub fn get_box_quads(&self) -> TypedArray<DOMQuad>
pub fn get_box_quads(&self) -> TypedArray<DOMQuad>
The getBoxQuads method.
Element.getBoxQuads
Sourcepub fn get_box_quads_with_options(
&self,
options: &BoxQuadOptions,
) -> TypedArray<DOMQuad>
pub fn get_box_quads_with_options( &self, options: &BoxQuadOptions, ) -> TypedArray<DOMQuad>
The getBoxQuads method.
Element.getBoxQuads
Sourcepub fn convert_quad_from_node(&self, quad: &DOMQuadInit, from: &Any) -> DOMQuad
pub fn convert_quad_from_node(&self, quad: &DOMQuadInit, from: &Any) -> DOMQuad
The convertQuadFromNode method.
Element.convertQuadFromNode
Sourcepub fn convert_quad_from_node_with_options(
&self,
quad: &DOMQuadInit,
from: &Any,
options: &ConvertCoordinateOptions,
) -> DOMQuad
pub fn convert_quad_from_node_with_options( &self, quad: &DOMQuadInit, from: &Any, options: &ConvertCoordinateOptions, ) -> DOMQuad
The convertQuadFromNode method.
Element.convertQuadFromNode
Sourcepub fn convert_rect_from_node(
&self,
rect: &DOMRectReadOnly,
from: &Any,
) -> DOMQuad
pub fn convert_rect_from_node( &self, rect: &DOMRectReadOnly, from: &Any, ) -> DOMQuad
The convertRectFromNode method.
Element.convertRectFromNode
Sourcepub fn convert_rect_from_node_with_options(
&self,
rect: &DOMRectReadOnly,
from: &Any,
options: &ConvertCoordinateOptions,
) -> DOMQuad
pub fn convert_rect_from_node_with_options( &self, rect: &DOMRectReadOnly, from: &Any, options: &ConvertCoordinateOptions, ) -> DOMQuad
The convertRectFromNode method.
Element.convertRectFromNode
Sourcepub fn convert_point_from_node(
&self,
point: &DOMPointInit,
from: &Any,
) -> DOMPoint
pub fn convert_point_from_node( &self, point: &DOMPointInit, from: &Any, ) -> DOMPoint
The convertPointFromNode method.
Element.convertPointFromNode
Sourcepub fn convert_point_from_node_with_options(
&self,
point: &DOMPointInit,
from: &Any,
options: &ConvertCoordinateOptions,
) -> DOMPoint
pub fn convert_point_from_node_with_options( &self, point: &DOMPointInit, from: &Any, options: &ConvertCoordinateOptions, ) -> DOMPoint
The convertPointFromNode method.
Element.convertPointFromNode
Sourcepub fn prepend(&self, nodes: &Any) -> Undefined
pub fn prepend(&self, nodes: &Any) -> Undefined
The prepend method.
Element.prepend
Sourcepub fn append(&self, nodes: &Any) -> Undefined
pub fn append(&self, nodes: &Any) -> Undefined
The append method.
Element.append
Sourcepub fn replace_children(&self, nodes: &Any) -> Undefined
pub fn replace_children(&self, nodes: &Any) -> Undefined
The replaceChildren method.
Element.replaceChildren
Sourcepub fn move_before(&self, node: &Node, child: &Node) -> Undefined
pub fn move_before(&self, node: &Node, child: &Node) -> Undefined
The moveBefore method.
Element.moveBefore
Sourcepub fn query_selector(&self, selectors: &JsString) -> Element
pub fn query_selector(&self, selectors: &JsString) -> Element
The querySelector method.
Element.querySelector
Sourcepub fn query_selector_all(&self, selectors: &JsString) -> NodeList
pub fn query_selector_all(&self, selectors: &JsString) -> NodeList
The querySelectorAll method.
Element.querySelectorAll
Sourcepub fn before(&self, nodes: &Any) -> Undefined
pub fn before(&self, nodes: &Any) -> Undefined
The before method.
Element.before
Sourcepub fn after(&self, nodes: &Any) -> Undefined
pub fn after(&self, nodes: &Any) -> Undefined
The after method.
Element.after
Sourcepub fn replace_with(&self, nodes: &Any) -> Undefined
pub fn replace_with(&self, nodes: &Any) -> Undefined
The replaceWith method.
Element.replaceWith
Sourcepub fn remove(&self) -> Undefined
pub fn remove(&self) -> Undefined
The remove method.
Element.remove
Sourcepub fn animate(&self, keyframes: &Object) -> Animation
pub fn animate(&self, keyframes: &Object) -> Animation
The animate method.
Element.animate
Sourcepub fn animate_with_options(
&self,
keyframes: &Object,
options: &Any,
) -> Animation
pub fn animate_with_options( &self, keyframes: &Object, options: &Any, ) -> Animation
The animate method.
Element.animate
Sourcepub fn get_animations(&self) -> TypedArray<Animation>
pub fn get_animations(&self) -> TypedArray<Animation>
The getAnimations method.
Element.getAnimations
Sourcepub fn get_animations_with_options(
&self,
options: &GetAnimationsOptions,
) -> TypedArray<Animation>
pub fn get_animations_with_options( &self, options: &GetAnimationsOptions, ) -> TypedArray<Animation>
The getAnimations method.
Element.getAnimations
Methods from Deref<Target = Node>§
Sourcepub fn node_type(&self) -> u16
pub fn node_type(&self) -> u16
Getter of the nodeType attribute.
Node.nodeType
Sourcepub fn node_name(&self) -> JsString
pub fn node_name(&self) -> JsString
Getter of the nodeName attribute.
Node.nodeName
Sourcepub fn base_uri(&self) -> JsString
pub fn base_uri(&self) -> JsString
Getter of the baseURI attribute.
Node.baseURI
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Getter of the isConnected attribute.
Node.isConnected
Sourcepub fn owner_document(&self) -> Document
pub fn owner_document(&self) -> Document
Getter of the ownerDocument attribute.
Node.ownerDocument
Sourcepub fn parent_node(&self) -> Node
pub fn parent_node(&self) -> Node
Getter of the parentNode attribute.
Node.parentNode
Sourcepub fn parent_element(&self) -> Element
pub fn parent_element(&self) -> Element
Getter of the parentElement attribute.
Node.parentElement
Sourcepub fn child_nodes(&self) -> NodeList
pub fn child_nodes(&self) -> NodeList
Getter of the childNodes attribute.
Node.childNodes
Sourcepub fn first_child(&self) -> Node
pub fn first_child(&self) -> Node
Getter of the firstChild attribute.
Node.firstChild
Sourcepub fn last_child(&self) -> Node
pub fn last_child(&self) -> Node
Getter of the lastChild attribute.
Node.lastChild
Sourcepub fn previous_sibling(&self) -> Node
pub fn previous_sibling(&self) -> Node
Getter of the previousSibling attribute.
Node.previousSibling
Sourcepub fn next_sibling(&self) -> Node
pub fn next_sibling(&self) -> Node
Getter of the nextSibling attribute.
Node.nextSibling
Sourcepub fn node_value(&self) -> JsString
pub fn node_value(&self) -> JsString
Getter of the nodeValue attribute.
Node.nodeValue
Sourcepub fn set_node_value(&mut self, value: &JsString)
pub fn set_node_value(&mut self, value: &JsString)
Setter of the nodeValue attribute.
Node.nodeValue
Sourcepub fn text_content(&self) -> JsString
pub fn text_content(&self) -> JsString
Getter of the textContent attribute.
Node.textContent
Sourcepub fn set_text_content(&mut self, value: &JsString)
pub fn set_text_content(&mut self, value: &JsString)
Setter of the textContent attribute.
Node.textContent
Examples found in repository?
4fn main() {
5 let con = Console::get();
6 let document = window().document();
7 let bodies = document.get_elements_by_tag_name(&"body".into());
8 if bodies.length() == 0 {
9 con.log(&["I Ain't got Nobody!".into()]);
10 return;
11 }
12 let body = bodies.item(0);
13 let mut button = document
14 .create_element(&"BUTTON".into())
15 .dyn_into::<HTMLButtonElement>()
16 .unwrap();
17
18 let style = button.style();
19 style.set_property(&"color".into(), &"red".into());
20 style.set_property(&"background-color".into(), &"#aaf".into());
21 style.set_property(&"border".into(), &"solid".into());
22
23 button.set_text_content(&"Click me".into());
24 button.add_event_listener(
25 &"click".into(),
26 &EventListener::from_closure(move |e: Event| {
27 let p = e.dyn_into::<PointerEvent>().unwrap();
28 con.log(&[p.client_x().into()]);
29 Undefined::VALUE
30 }),
31 );
32 body.append_child(button.dyn_ref::<Node>().unwrap());
33}More examples
4fn main() {
5 let context = AudioContext::new();
6 println!("Got an AudioContext");
7
8 // Create oscillator
9 let mut oscillator = context.create_oscillator();
10 println!("Configuring oscillator");
11 oscillator.set_type_(&OscillatorType::TRIANGLE);
12 oscillator.frequency().set_value(261.63); // Middle C
13
14 let document = window().document();
15 let body = document.get_elements_by_tag_name(&"body".into()).item(0);
16 let mut button = document
17 .create_element(&"BUTTON".into())
18 .dyn_into::<HTMLButtonElement>()
19 .unwrap();
20
21 button.set_text_content(&"Click me".into());
22 button.add_event_listener(
23 &JsString::from("click"),
24 &EventListener::from_closure(move |_e: Event| {
25 println!("Playing");
26 oscillator.connect_with_destination_param(
27 context.destination().unchecked_ref::<AudioParam>(),
28 );
29 oscillator.start_with_when(0.0);
30 println!("All done!");
31 Undefined::VALUE
32 }),
33 );
34 body.append_child(button.dyn_ref::<Node>().unwrap());
35}Sourcepub fn get_root_node(&self) -> Node
pub fn get_root_node(&self) -> Node
The getRootNode method.
Node.getRootNode
Sourcepub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
pub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
The getRootNode method.
Node.getRootNode
Sourcepub fn has_child_nodes(&self) -> bool
pub fn has_child_nodes(&self) -> bool
The hasChildNodes method.
Node.hasChildNodes
Sourcepub fn normalize(&self) -> Undefined
pub fn normalize(&self) -> Undefined
The normalize method.
Node.normalize
Sourcepub fn clone_node(&self) -> Node
pub fn clone_node(&self) -> Node
The cloneNode method.
Node.cloneNode
Sourcepub fn clone_node_with_subtree(&self, subtree: bool) -> Node
pub fn clone_node_with_subtree(&self, subtree: bool) -> Node
The cloneNode method.
Node.cloneNode
Sourcepub fn is_equal_node(&self, other_node: &Node) -> bool
pub fn is_equal_node(&self, other_node: &Node) -> bool
The isEqualNode method.
Node.isEqualNode
Sourcepub fn is_same_node(&self, other_node: &Node) -> bool
pub fn is_same_node(&self, other_node: &Node) -> bool
The isSameNode method.
Node.isSameNode
Sourcepub fn compare_document_position(&self, other: &Node) -> u16
pub fn compare_document_position(&self, other: &Node) -> u16
The compareDocumentPosition method.
Node.compareDocumentPosition
Sourcepub fn contains(&self, other: &Node) -> bool
pub fn contains(&self, other: &Node) -> bool
The contains method.
Node.contains
Sourcepub fn lookup_prefix(&self, namespace: &JsString) -> JsString
pub fn lookup_prefix(&self, namespace: &JsString) -> JsString
The lookupPrefix method.
Node.lookupPrefix
Sourcepub fn lookup_namespace_uri(&self, prefix: &JsString) -> JsString
pub fn lookup_namespace_uri(&self, prefix: &JsString) -> JsString
The lookupNamespaceURI method.
Node.lookupNamespaceURI
Sourcepub fn is_default_namespace(&self, namespace: &JsString) -> bool
pub fn is_default_namespace(&self, namespace: &JsString) -> bool
The isDefaultNamespace method.
Node.isDefaultNamespace
Sourcepub fn insert_before(&self, node: &Node, child: &Node) -> Node
pub fn insert_before(&self, node: &Node, child: &Node) -> Node
The insertBefore method.
Node.insertBefore
Sourcepub fn append_child(&self, node: &Node) -> Node
pub fn append_child(&self, node: &Node) -> Node
The appendChild method.
Node.appendChild
Examples found in repository?
4fn main() {
5 let con = Console::get();
6 let document = window().document();
7 let bodies = document.get_elements_by_tag_name(&"body".into());
8 if bodies.length() == 0 {
9 con.log(&["I Ain't got Nobody!".into()]);
10 return;
11 }
12 let body = bodies.item(0);
13 let mut button = document
14 .create_element(&"BUTTON".into())
15 .dyn_into::<HTMLButtonElement>()
16 .unwrap();
17
18 let style = button.style();
19 style.set_property(&"color".into(), &"red".into());
20 style.set_property(&"background-color".into(), &"#aaf".into());
21 style.set_property(&"border".into(), &"solid".into());
22
23 button.set_text_content(&"Click me".into());
24 button.add_event_listener(
25 &"click".into(),
26 &EventListener::from_closure(move |e: Event| {
27 let p = e.dyn_into::<PointerEvent>().unwrap();
28 con.log(&[p.client_x().into()]);
29 Undefined::VALUE
30 }),
31 );
32 body.append_child(button.dyn_ref::<Node>().unwrap());
33}More examples
4fn main() {
5 let context = AudioContext::new();
6 println!("Got an AudioContext");
7
8 // Create oscillator
9 let mut oscillator = context.create_oscillator();
10 println!("Configuring oscillator");
11 oscillator.set_type_(&OscillatorType::TRIANGLE);
12 oscillator.frequency().set_value(261.63); // Middle C
13
14 let document = window().document();
15 let body = document.get_elements_by_tag_name(&"body".into()).item(0);
16 let mut button = document
17 .create_element(&"BUTTON".into())
18 .dyn_into::<HTMLButtonElement>()
19 .unwrap();
20
21 button.set_text_content(&"Click me".into());
22 button.add_event_listener(
23 &JsString::from("click"),
24 &EventListener::from_closure(move |_e: Event| {
25 println!("Playing");
26 oscillator.connect_with_destination_param(
27 context.destination().unchecked_ref::<AudioParam>(),
28 );
29 oscillator.start_with_when(0.0);
30 println!("All done!");
31 Undefined::VALUE
32 }),
33 );
34 body.append_child(button.dyn_ref::<Node>().unwrap());
35}Sourcepub fn replace_child(&self, node: &Node, child: &Node) -> Node
pub fn replace_child(&self, node: &Node, child: &Node) -> Node
The replaceChild method.
Node.replaceChild
Sourcepub fn remove_child(&self, child: &Node) -> Node
pub fn remove_child(&self, child: &Node) -> Node
The removeChild method.
Node.removeChild
Methods from Deref<Target = EventTarget>§
Sourcepub fn add_event_listener(
&self,
type_: &JsString,
callback: &EventListener,
) -> Undefined
pub fn add_event_listener( &self, type_: &JsString, callback: &EventListener, ) -> Undefined
The addEventListener method.
EventTarget.addEventListener
Examples found in repository?
4fn main() {
5 let con = Console::get();
6 let document = window().document();
7 let bodies = document.get_elements_by_tag_name(&"body".into());
8 if bodies.length() == 0 {
9 con.log(&["I Ain't got Nobody!".into()]);
10 return;
11 }
12 let body = bodies.item(0);
13 let mut button = document
14 .create_element(&"BUTTON".into())
15 .dyn_into::<HTMLButtonElement>()
16 .unwrap();
17
18 let style = button.style();
19 style.set_property(&"color".into(), &"red".into());
20 style.set_property(&"background-color".into(), &"#aaf".into());
21 style.set_property(&"border".into(), &"solid".into());
22
23 button.set_text_content(&"Click me".into());
24 button.add_event_listener(
25 &"click".into(),
26 &EventListener::from_closure(move |e: Event| {
27 let p = e.dyn_into::<PointerEvent>().unwrap();
28 con.log(&[p.client_x().into()]);
29 Undefined::VALUE
30 }),
31 );
32 body.append_child(button.dyn_ref::<Node>().unwrap());
33}More examples
4fn main() {
5 let context = AudioContext::new();
6 println!("Got an AudioContext");
7
8 // Create oscillator
9 let mut oscillator = context.create_oscillator();
10 println!("Configuring oscillator");
11 oscillator.set_type_(&OscillatorType::TRIANGLE);
12 oscillator.frequency().set_value(261.63); // Middle C
13
14 let document = window().document();
15 let body = document.get_elements_by_tag_name(&"body".into()).item(0);
16 let mut button = document
17 .create_element(&"BUTTON".into())
18 .dyn_into::<HTMLButtonElement>()
19 .unwrap();
20
21 button.set_text_content(&"Click me".into());
22 button.add_event_listener(
23 &JsString::from("click"),
24 &EventListener::from_closure(move |_e: Event| {
25 println!("Playing");
26 oscillator.connect_with_destination_param(
27 context.destination().unchecked_ref::<AudioParam>(),
28 );
29 oscillator.start_with_when(0.0);
30 println!("All done!");
31 Undefined::VALUE
32 }),
33 );
34 body.append_child(button.dyn_ref::<Node>().unwrap());
35}Sourcepub fn add_event_listener_with_options(
&self,
type_: &JsString,
callback: &EventListener,
options: &Any,
) -> Undefined
pub fn add_event_listener_with_options( &self, type_: &JsString, callback: &EventListener, options: &Any, ) -> Undefined
The addEventListener method.
EventTarget.addEventListener
Sourcepub fn remove_event_listener(
&self,
type_: &JsString,
callback: &EventListener,
) -> Undefined
pub fn remove_event_listener( &self, type_: &JsString, callback: &EventListener, ) -> Undefined
The removeEventListener method.
EventTarget.removeEventListener
Sourcepub fn remove_event_listener_with_options(
&self,
type_: &JsString,
callback: &EventListener,
options: &Any,
) -> Undefined
pub fn remove_event_listener_with_options( &self, type_: &JsString, callback: &EventListener, options: &Any, ) -> Undefined
The removeEventListener method.
EventTarget.removeEventListener
Sourcepub fn dispatch_event(&self, event: &Event) -> bool
pub fn dispatch_event(&self, event: &Event) -> bool
The dispatchEvent method.
EventTarget.dispatchEvent
Sourcepub fn when(&self, type_: &JsString) -> Observable
pub fn when(&self, type_: &JsString) -> Observable
The when method.
EventTarget.when
Sourcepub fn when_with_options(
&self,
type_: &JsString,
options: &ObservableEventListenerOptions,
) -> Observable
pub fn when_with_options( &self, type_: &JsString, options: &ObservableEventListenerOptions, ) -> Observable
The when method.
EventTarget.when
Methods from Deref<Target = Any>§
Sourcepub fn has_own_property(&self, prop: &str) -> bool
pub fn has_own_property(&self, prop: &str) -> bool
Checks whether a non-inherited property prop exists
Sourcepub fn at<T>(&self, idx: T) -> Val
pub fn at<T>(&self, idx: T) -> Val
Gets the element at index idx. Assumes the underlying js type is indexable
Sourcepub fn to_vec<V>(&self) -> Vec<V>where
V: FromVal,
pub fn to_vec<V>(&self) -> Vec<V>where
V: FromVal,
Converts the underlying js array to a Vec of V
Sourcepub fn call(&self, f: &str, args: &[Val]) -> Val
pub fn call(&self, f: &str, args: &[Val]) -> Val
Calls the method f with args, can return an undefined js value
Sourcepub fn new(&self, args: &[Val]) -> Val
pub fn new(&self, args: &[Val]) -> Val
Calls the object’s constructor with args constructing a new object
Sourcepub fn invoke(&self, args: &[Val]) -> Val
pub fn invoke(&self, args: &[Val]) -> Val
Invokes the function object with args, can return an undefined js value
Sourcepub fn instanceof(&self, v: Val) -> bool
pub fn instanceof(&self, v: Val) -> bool
Checks whether this Val is an instanceof v
pub fn is_number(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_undefined(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_function(&self) -> bool
pub fn as_<T>(&self) -> Twhere
T: FromVal,
Trait Implementations§
Source§impl AsMut<Val> for HTMLFieldSetElement
impl AsMut<Val> for HTMLFieldSetElement
Source§impl AsRef<Val> for HTMLFieldSetElement
impl AsRef<Val> for HTMLFieldSetElement
Source§impl Clone for HTMLFieldSetElement
impl Clone for HTMLFieldSetElement
Source§fn clone(&self) -> HTMLFieldSetElement
fn clone(&self) -> HTMLFieldSetElement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HTMLFieldSetElement
impl Debug for HTMLFieldSetElement
Source§impl Deref for HTMLFieldSetElement
impl Deref for HTMLFieldSetElement
Source§impl DerefMut for HTMLFieldSetElement
impl DerefMut for HTMLFieldSetElement
Source§impl DynCast for HTMLFieldSetElement
impl DynCast for HTMLFieldSetElement
Source§fn instanceof(val: &Any) -> bool
fn instanceof(val: &Any) -> bool
val instanceof ThisType.Source§fn unchecked_from_val(v: Any) -> Self
fn unchecked_from_val(v: Any) -> Self
Val into Self.Source§fn unchecked_from_val_ref(v: &Any) -> &Self
fn unchecked_from_val_ref(v: &Any) -> &Self
&Val into &Self.Source§fn unchecked_from_val_mut(v: &mut Any) -> &mut Self
fn unchecked_from_val_mut(v: &mut Any) -> &mut Self
&mut Val into &mut Self.fn has_type<T>(&self) -> boolwhere
T: DynCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: DynCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: DynCast,
fn dyn_mut<T>(&mut self) -> Option<&mut T>where
T: DynCast,
fn unchecked_into<T>(self) -> Twhere
T: DynCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: DynCast,
fn unchecked_mut<T>(&mut self) -> &mut Twhere
T: DynCast,
fn is_instance_of<T>(&self) -> boolwhere
T: DynCast,
Source§fn is_type_of(val: &Val) -> bool
fn is_type_of(val: &Val) -> bool
instanceof.