Class: PfTab

PfTab

<pf-tab> element for Patternfly Web Components


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
attrName string

The attribute name that has changed

oldValue string

The old attribute value

newValue string

The new attribute value