Tab
A tab within a tabs element. Learn more.
Additional information about this section
Store values associated with an object
- id
Gets the tab's ID.
- label
Sets or gets the tab's label.
- type
Gets the element's type.
- customClassList
A property that represents an element's custom CSS classes.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- parent
Gets the element's parent element.
- background
Sets or gets an object containing information about the element's background.
- children
Gets an array of the elements that are contained within the element.
The endpoints exposed by this API
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
Adds an event handler that runs when the pointer is moved onto the element. You can also define an event handler using the Properties and Events panel.
Adds an event handler that runs when the pointer is moved off of the element. You can also define an event handler using the Properties and Events panel.
Restores a deleted element to the DOM.
Scrolls the page to the top of the element using an animation.
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.