The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsCallback method called with the resolved context instance or undefined.
Reference to the created Context Consumer Controller instance
Subscribe to a context. The callback fires when the context resolves, again if the context is replaced, and can also be invoked with undefined if the context is unprovided or the host disconnects. Use this whenever a controller or element needs the context at setup time — both for ongoing observation and for reading values immediately on resolve. This is the default choice; prefer it over getContext unless the context is only needed inside a later user action.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Optionaloptions: UmbClassGetContextOptions
Options for resolving the context once, including timeout-related behavior such as preventTimeout.
A Promise resolving to the Context API instance when available, or undefined when applicable.
Retrieve a context once as a Promise. Use this only when the context is first needed inside a user action or event handler that runs later (for example a button click, a property action, or an entity action execute()). For setup-time access — including a single immediate read — use consumeContext instead so the controller lifecycle handles resolution and cleanup. The returned Promise may reject if the context is not found before the default timeout; callers should handle rejection and/or pass preventTimeout in the options when waiting longer is expected.
An Observable to observe from.
Optionalcallback: ObserverCallback<UmbObserverValueType<ObservableType>>
Callback method called when data is changed.
OptionalcontrollerAlias: UmbControllerAlias | null
Define an explicit controller alias. If not defined then one will be generated based on the callback function. If null is parsed no controller alias will be given.
Reference to the created Observer Controller instance.
The API instance to be exposed.
Reference to the created Context Provider Controller instance
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsReturns a promise with every allowed child of a content type, by paging through the data source until all items have been retrieved.
The content type to get the allowed children of, or null for the root.
The content item the children will be created under, if any.
A promise resolving to { data: { items, total } } containing every allowed child, or { error }.
Returns a promise with a single page of the allowed children of a content type. The server returns the
first 100 when no paging is given, so prefer requestAllAllowedChildrenOf when every allowed child is needed.
The content type to get the allowed children of, or null for the root.
The content item the children will be created under, if any.
Optionalpaging: UmbOffsetPaginationRequestModel
The page to return.
A promise resolving to { data: { items, total } }, or { error }.
Returns the media types that allow the given file extension. Pages through them all unless an explicit
skip/take is given, in which case only that page is returned.
The file extension to match, and optionally the single page to return.
A promise resolving to the matching media types, or an empty array if the request failed.
Returns the media types that represent folders. Pages through them all unless an explicit skip/take is
given, in which case only that page is returned.
Optionally the single page to return.
A promise resolving to the folder media types, or an empty array if the request failed.
This mixin enables a web-component to host controllers. This enables controllers to be added to the life cycle of this element.