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 attrName
string The attribute name that has changed
oldValue
string The old attribute value
newValue
string The new attribute value
-
connectedCallback()
-
Called when an instance was inserted into the document
-
toggle()
-
Toggle the visiblity of the panel