Tab
A custom tab web component for BIM applications. HTML tag: bim-tab
Extends
LitElement
Properties
name
name:
string
The name of the tab. If not provided, a default name will be assigned based on its position in the parent element.
styles
staticstyles:CSSResult
CSS styles for the component.
Overrides
LitElement.styles
Accessors
hidden
sethidden(value):void
Sets the hidden state of the tab.
Fires
hiddenchange - Dispatched when the hidden state changes.
Example
const tab = document.querySelector('bim-tab');
tab.hidden = true; // hides the tab
Parameters
| Parameter | Type | Description |
|---|---|---|
value | boolean | The new hidden state. If true, the tab will be hidden. If false, the tab will be visible. |
icon
seticon(value):void
The icon of the tab. This property is optional and can be used to display an icon next to the tab's label or name.
Parameters
| Parameter | Type |
|---|---|
value | undefined | string |
label
setlabel(value):void
The label of the tab. This property is optional and can be used to display a custom label instead of the tab's name.
Parameters
| Parameter | Type |
|---|---|
value | undefined | string |