A property decorator that converts a class property into a getter that executes a querySelectorAll on the element's renderRoot.
Class decorator factory that defines the decorated class as a custom element.
the name of the custom element to define
In TypeScript, the tagName
passed to customElement
should be a key of the
HTMLElementTagNameMap
interface. To add your element to the interface,
declare the interface in this module:
@customElement('my-element')
export class MyElement extends LitElement {}
declare global {
interface HTMLElementTagNameMap {
'my-element': MyElement;
}
}
Adds event listener options to a method used as an event listener in a lit-html template.
An object that specifis event listener options as accepted by
EventTarget#addEventListener
and EventTarget#removeEventListener
.
Current browsers support the capture
, passive
, and once
options. See:
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters
A property decorator which creates a LitElement property which reflects a
corresponding attribute value. A PropertyDeclaration
may optionally be
supplied to configure property features.
Generated using TypeDoc
A property decorator that converts a class property into a getter that executes a querySelector on the element's renderRoot.