new PfTab()
Properties:
| Name | Type | Description |
|---|---|---|
tab-title |
string | the tab title |
active |
string | if attribute exists, tab will be active |
Example
<pf-tabs> <pf-tab tab-title="Tab1" active="true"> <p>Tab1 content here</p> </pf-tab> <pf-tab tab-title="Tab2"> <p>Tab2 content here</p> </pf-tab> </pf-tabs>
Members
-
active
-
Set flag indicating tab is active
-
active
-
Get flag indicating tab is active
-
tabTitle
-
Get tab-title
-
tabTitle
-
Set tab tab-title
Methods
-
attributeChangedCallback(attrName, oldValue, newValue)
-
Called when element's attribute value has changed
Parameters:
Name Type Description attrNamestring The attribute name that has changed
oldValuestring The old attribute value
newValuestring The new attribute value