Class: Accordion

Accordion

A accordion component - UX/COE Compliant
class: normal - no ux/coe decorations uxcoe - skined based on our current UX/COE Design



DEMO

Constructor

new Accordion()

Source:

Members

(static) observedAttributes

Set observable values here. When Changed, attributeChangedCallback is invoked
Source:

Methods

(static) test()

FOR TESTING PURPOSES
Source:

_fetchAttributes(author, version, widthopt, singleopt, activeopt)

Component attributes are _fetched and defaults are set if undefined
Parameters:
Name Type Attributes Default Description
author string component owner
version string Latest version of this component
width string <optional>
100% panel width
single boolean <optional>
true only one panel at a time
active integer <optional>
0 index of active panel
Source:

_fetchElements()

Stores DOM elements of interest for future use
Source:

_finalize()

SAVE DATA FOR ANALYTICS
Source:

_onClick()

Invoked when user clicks on the panel header. Only available if "collapsible" parameter is true
Source:

attributeChangedCallback()

Called with .setAttribute(...) function call
Source:

connectedCallback()

This function is called when this is attached to DOM
Source:

destroy()

Destroy the instance object and artifacts
Source:

disconnectedCallback()

Invoked When component is removed. Usually with a .remove() function call
Source:

disconnectedCallback()

Invoked When component is removed. Usually with a .remove() function call
Source: