Module: @aofl/element

Version:
  • 3.0.0
Since:
  • 3.0.0
Author:
  • Arian Khosravi<arian.khosravi@aofl.com>
Source:

Classes

AoflElement

Methods


<static> exports.customElement(tagName)

extends lit-element's custom-element decorator and prevents an error being thrown when the element is already defined when hot module replacement is enabled.
Parameters:
Name Type Description
tagName String
Source:
Returns:
Type
Object

<static> exports.property(options)

extends lit-element's property decorator and adds support for map state to @aofl/store.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
attribute Boolean | String
type TypeHint
converter function
reflect Boolean
hasChanged function
noAccessor Boolean
store, Store
mapState String
Source:
Returns:
Type
Object