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 when context is resolved.
Reference to the created Context Consumer Controller instance
Creates a new item and returns the created item data.
The data to create the item with.
The API response containing the created item or an error.
Deletes an item by its ID. If connected to server events, the item is also removed from the cache.
The ID of the item to delete.
The API response containing an error if the deletion failed.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Optionaloptions: UmbClassGetContextOptionsA Promise with the reference to the Context Api Instance
An Observable to observe from.
Optionalcallback: ObserverCallback<SpecificT>Callback method called when data is changed.
OptionalcontrollerAlias: null | UmbControllerAliasDefine 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
Reads a single item by its ID. Uses the cache if connected to server events and the item is cached, otherwise fetches from the server. Deduplicates concurrent requests for the same ID using an in-flight request cache.
The ID of the item to read.
The API response containing the item or an error.
Reads multiple items by their IDs. Only available if a readMany function was provided in the constructor args. Deduplicates concurrent requests: if an ID is already being fetched by another concurrent readMany call, it waits for that request instead of re-fetching.
The IDs of the items to read
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsUpdates an existing item and returns the updated item data.
The ID of the item to update.
The data to update the item with.
The API response containing the updated item or an error.
This mixin enables a web-component to host controllers. This enables controllers to be added to the life cycle of this element.