Members
(static) observedAttributes
Set observable values here. When Changed, attributeChangedCallback is invoked
Methods
(static) test()
FOR TESTING PURPOSES
_fetchAttributes(author, version, collapsibleopt, widthopt, heightopt, backgroundopt)
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 | ||
collapsible |
boolean |
<optional> |
false | if panel can be collapsed |
width |
string |
<optional> |
100% | panel width |
height |
string |
<optional> |
100% | body height |
background |
string |
<optional> |
#FFF | body color |
_fetchElements()
Stores DOM elements of interest for future use
_finalize()
SAVE DATA FOR ANALYTICS
_onClick()
A sample callback usage function - see connectedCallback()
attributeChangedCallback()
Called with .setAttribute(...) function call
close()
Closes a open panel
connectedCallback()
This function is called when this is attached to DOM
destroy()
Destroy the instance object and artifacts
disconnectedCallback()
Invoked When component is removed. Usually with a .remove() function call
disconnectedCallback()
Invoked When component is removed. Usually with a .remove() function call
open()
Opens a given panel