Properties declared this way must not be used from HTML or HTML templating systems, they're solely for properties internal to the element. These properties may be renamed by optimization tools like the Closure Compiler.
A property decorator which creates a LitElement property which reflects a corresponding attribute value. A PropertyDeclaration may optionally be supplied to configure property features.
Import
import { property } from'lit-element';
Signature
property(options?): (protoOrDescriptor: Object | ClassElement, name?: PropertyKey) => any
A property decorator that converts a class property into a getter that returns the assignedNodes of the given named slot. Note, the type of this property should be annotated as NodeListOf<HTMLElement>.
A property decorator that converts a class property into a getter that returns a promise that resolves to the result of a querySelector on the element's renderRoot done after the element's updateComplete promise resolves. When the queried property may change with element state, this decorator can be used instead of requiring users to await the updateComplete before accessing the property.
Import
import { queryAsync } from'lit-element';
Signature
queryAsync(selector): (protoOrDescriptor: Object | ClassElement, name?: PropertyKey) => any
Parameters
selector
string
A DOMString containing one or more selectors to match.
Properties declared this way must not be used from HTML or HTML templating systems, they're solely for properties internal to the element. These properties may be renamed by optimization tools like the Closure Compiler.
A function that indicates if a property should be considered changed when it is set. The function should take the newValue and oldValue and return true if an update should be requested.