Tabs
A tabs element is a container that holds multiple tabs, displaying one at a time. Learn more.
Additional information about this section
Store values associated with an object
- currentTab
Gets the tab currently displayed in the tabs element.
- defaultTab
Gets the tabs element's default tab.
- tabs
Gets a list of all the tabs contained in the tabs element.
- 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.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
- collapsed
Indicates if the element is collapsed or expanded.
- children
Gets an array of the elements that are contained within the element.
The endpoints exposed by this API
Changes the tabs element's current tab.
Adds an event handler that runs when the tabs element moves to a different tab.
Adds an event handler that runs when any tab menu item is clicked.
Changes the order of the tabs in a tabs element.
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.
Hides the element and sets its hidden property to true, using an effect if specified.
Shows the element and sets its hidden property to false, using an effect if specified.
Collapses the element and sets its collapsed property to true.
Expands the element and sets its collapsed property to false.
Adds an event handler that runs when the element is clicked.
Adds an event handler that runs when the element is double-clicked.