AbstractProtected_Protected_Protected_ReadonlyallReadonlyblockReadonlycontentsReadonlyeditorReadonlyexposesReadonlylayoutsReadonlyliveReadonlyreadReadonlysettingsProtected_Collects the content keys of every layout entry marked as external content. Override to also reach layout entries that are nested inside other entries.
the top-level layout entries.
the content keys of the external content layouts, one per reference.
Protected_OptionalpartialLayoutEntry: Omit<BlockLayoutType, "key" | "contentKey">Protected_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.
AbstractcreateOptionalpartialLayoutEntry: Omit<BlockLayoutType, "key" | "contentKey">OptionaloriginData: BlockOriginDataTypeThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
Returns an observable of why the external content is unavailable.
Emits undefined while the content is available or not yet resolved.
The content key of the external content.
Returns an observable of the external content's name (from the Element it references), matching the current variant. Emits null if the external content has not resolved yet, or is not external content.
Returns an observable of the external content variant state. Emits the state string (e.g., 'Published', 'Draft') or null if not resolved yet.
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.
AbstractinsertProtectedinsertInsert a block whose content is an external content reference.
Only creates a layout entry — no contentData entry is added.
The layout observer handles fetching the element data.
The layout is placed through setOneLayout, so implementations can position it from the origin data.
The key of the external element to reference.
OptionaloriginData: BlockOriginDataType
Where the block was requested from, used by implementations to position it.
Returns an observable that emits true when a layout entry for the given contentKey, at any nesting
level reached by _collectExternalContentKeys, has isExternalContent set (i.e., the block
references external content).
Observe the first layout entry that references the given content key. A content key can be referenced by more than one layout entry, so this does not identify a specific entry.
The content key to look up.
The first matching layout entry.
ProtectednotifyAn 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
ProtectedremoveThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptionsRequest to disconnect a block from external content (Element Library).
the block layout key.
Request to transfer a local block's content to external content (Element Library). The Element is created from all cultures the block holds data in, and published in the cultures the block is exposed in. Nothing is transferred when the user lacks access to a language the block holds data in.
the block layout key.
Optionalname: stringThe outcome, or undefined when nothing was transferred.
Set the content of a block. Ignored for external content, which belongs to the element it references and is not stored in the block value.
The content to set.
Mark the content of a block as exposed for a variant. Ignored for external content, which does not keep an exposed state.
The key of the content.
The variant to expose it for.
Optional_originData: BlockOriginDataType
Combined observable of local block content and resolved external (library element) content. Use this alongside
contentswhen you also need to react to library elements becoming available. The two arrays are concatenated without de-duplication — a key present in both (which should not normally happen) appears twice, with the local entry taking precedence in lookups likegetContentOf.