Constructor
new BaseElement(options)
Parameters:
| Name |
Type |
Description |
options |
Object
|
|
- Source:
Members
Type:
- Source:
- Source:
Methods
_connected()
This is called when connected. Extend in subclass if needed.
- Source:
_disconnected()
This is called when disconnected. Extend in subclass if needed.
- Source:
_ready()
This is called at the end of constructor. Extend in subclass if needed.
- Source:
attributeChangedCallback(attributeName, oldValue, newValue)
This is only meant to work with data attributes
This allows us to have properties that reflect automatically in the component
Parameters:
| Name |
Type |
Description |
attributeName |
String
|
|
oldValue |
String
|
|
newValue |
String
|
|
- Source:
getOption(opt) → {any}
Parameters:
| Name |
Type |
Description |
opt |
String
|
|
- Source:
Returns:
-
Type
-
any
handleEvent(event)
Handle events within the component
Parameters:
| Name |
Type |
Description |
event |
Event
|
|
- Source:
log(message)
Parameters:
| Name |
Type |
Description |
message |
String
|
Error
|
|
- Source:
setOption(opt, v)
Parameters:
| Name |
Type |
Description |
opt |
String
|
|
v |
any
|
|
- Source:
toggleOption(opt)
Parameters:
| Name |
Type |
Description |
opt |
String
|
|
- Source:
(static) template() → {String}
- Source:
Returns:
-
Type
-
String