new PfAccordionTemplate()
Called when an instance of the element is created
Properties:
| Name | Type | Description |
|---|---|---|
open |
boolean | indicates if accordion is expanded |
Members
-
<static> observedAttributes
-
Returns a list of attributes on which we are interested to track changes
-
open
-
Set the display state of the panel
-
open
-
Get the display state of the panel
Methods
-
_collapse()
-
Hide the panel
-
_expand()
-
Make the panel visible
-
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
-
connectedCallback()
-
Called when an instance was inserted into the document
-
toggle()
-
Toggle the visiblity of the panel