AbstractReadonlyrenderStaticshadowAn AbortSignal which will trigger when this component is disconnected from the DOM.
This can be passed along to asynchronous tasks such as fetch initiated by this component, which will then be aborted automatically if the component is removed from the DOM.
Adds a controller to the host, which sets up the controller's lifecycle methods to be called with the host's lifecycle.
Add a style sheet to the component's shadow root.
ProtectedcreateCreate the component's render root.
By default, this creates a ShadowRoot and attaches it to the component.
If you don't want to use a shadow DOM, you can override this method to
just return this, which causes the component's contents to render as
direct children of the component itself.
StaticaddRegister a function which will be executed whenever an instance of this class is constructed.
Declares the events this element can emit.
StaticdepsDeclare the web components this element will be using.
This is a convenient place to make sure these web components will be defined when your component is rendered. It has no effect otherwise.
Static OptionalstylesDeclare CSS style sheets which will be installed for this web component.
Style sheets can be either CSSStyleSheet objects, Lit template CSSResults, or strings.
If a superclass also declares the styles property, this list will be
appended to the superclass's list.
Emit a custom event with the given name and detail.
Event init options default to { bubbles: true, composed: true }.
Construct an event using the provided name and constructor.
The constructor will be called with the name as its first argument, followed by any subsequent arguments provided after the constructor.
Attach an event listener to an event on this component.
Optionaloptions: boolean | AddEventListenerOptionsA Disposable to subsequently detach the event listener.
ProtectedconnectedThis lifecycle callback is called each time this component is connected to the DOM.
ProtecteddisconnectedThis lifecycle callback is called each time this component is disconnected from the DOM.
ProtectedfirstThis lifecycle callback is called the first time every property decorated with @require has been defined, and before Component.initialised.
ProtectedfirstThis lifecycle callback is called after the component's first update has completed, and before Component.updated.
ProtectedinitialisedThis lifecycle callback is called every time a property decorated with
the @require decorator has changed, but only when every property
marked as such is not undefined.
ProtectedstabilisedThis lifecycle callback is called when the component considers itself stabilised after its first update.
ProtectedupdatedThis lifecycle callback is called each time an update has completed.
ProtectedfindReturn an iterator over this component's children which are also Components.
If an element that is either inside this element's shadow root or is a child of this element (ie. slotted) currently has focus, return that element. Otherwise, return null.
Find the first element in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @query decorator, use this as a getter
instead, as in the example below.
Find the first element in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @query decorator, use this as a getter
instead, as in the example below.
Find the first element in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @query decorator, use this as a getter
instead, as in the example below.
Find the first element in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @query decorator, use this as a getter
instead, as in the example below.
Find all elements in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @queryAll decorator, use this as a getter
instead, as in the example below.
Find all elements in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @queryAll decorator, use this as a getter
instead, as in the example below.
Find all elements in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @queryAll decorator, use this as a getter
instead, as in the example below.
Find all elements in the component's Component.renderRoot matching the provided CSS selector.
If you need to query the component's direct child elements instead, use Component.querySlot.
If you were looking for Lit's @queryAll decorator, use this as a getter
instead, as in the example below.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Find the elements attached to a given slot on this component, according to the provided QuerySlotOptions.
If you include reactive: true in your query, the result will be a
signal which updates with the contents of the slot.
Optionaloptions: QuerySlotOptionsA Promise which resolves when this component has completed its first update and considers itself stabilised, according to the Component.stabilise method.
By default, a component considers itself stabilised when all of its children which are also Components are reporting as stabilised.
True if this component had scheduled an update which has not yet started.
ProtectedrenderRender the component's contents.
This function should return a Lit renderable value, usually an html template.
ProtectedstabiliseRegister a Disposable for automatic disposal when this component is disposed.
Register a Disposable for automatic disposal when this component is disposed.
Register a Disposable for automatic disposal when this component is disposed.
Register a Disposable for automatic disposal when this component is disposed.
Register a Disposable for automatic disposal when this component is disposed.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Attach a Disposable to the component's connected/disconnected lifecycle state.
This causes the Disposable to be disposed automatically when the component is disconnected. The common pattern for this is for resources, such as event listeners, allocated in Component.connectedCallback to be registered for automatic deallocation during Component.disconnectedCallback.
Base class for web components.