@umbraco-cms/backoffice
    Preparing search index...

    Class UmbBlockEntryContext<BlockManagerContextTokenType, BlockManagerContextType, BlockEntriesContextTokenType, BlockEntriesContextType, BlockType, BlockLayoutType, BlockOriginData>Abstract

    This base provides the necessary for a class to become a context-api controller.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _blockType: UmbObjectState<BlockType | undefined> = ...
    _contentStructureHasProperties: Observable<boolean | undefined> = ...
    _contentValueArray: Observable<UmbBlockDataValueModel<unknown>[] | undefined> = ...
    _layout: UmbObjectState<BlockLayoutType | undefined> = ...
    _settingsValueArray: Observable<UmbBlockDataValueModel<unknown>[] | undefined> = ...
    _variantId: Observable<UmbVariantId | undefined> = ...
    actionsVisibility: Observable<boolean> = ...
    blockType: Observable<BlockType | undefined> = ...
    contentElementTypeAlias: Observable<string | undefined> = ...
    contentElementTypeIcon: Observable<string | undefined> = ...
    contentElementTypeKey: Observable<string | undefined> = ...
    contentElementTypeName: Observable<string | undefined> = ...
    contentKey: Observable<string | undefined> = ...
    contentTypeKey: Observable<string | undefined> = ...
    createAfterPath: Observable<string | undefined> = ...
    createBeforePath: Observable<string | undefined> = ...
    hasExpose: Observable<boolean | undefined> = ...
    index: Observable<number | undefined> = ...
    label: Observable<string> = ...
    layout: Observable<BlockLayoutType | undefined> = ...
    name: Observable<string> = ...

    Observable of the block's resolved label text (UFM rendered as plain text).

    readOnlyGuard: UmbReadOnlyVariantGuardManager = ...
    settingsElementTypeKey: Observable<string | null | undefined> = ...
    settingsKey: Observable<string | null | undefined> = ...
    showContentEdit: Observable<boolean>
    unique: Observable<string | undefined> = ...
    unsupported: Observable<boolean | undefined> = ...
    workspaceEditContentPath: Observable<string> = ...
    workspaceEditSettingsPath: Observable<string> = ...
    workspacePath: Observable<string | undefined> = ...

    Accessors

    Methods

    • Whether this context should run its own hidden UmbUfmVirtualRenderController as the source of getName(). Subclasses whose entry element owns a canonical <umb-ufm-render> (and pushes text via setName) should override this to return false.

      Returns boolean

      true to create the legacy hidden renderer; false to skip it.

      Scheduled for removal in Umbraco 19. Subclasses must own their own <umb-ufm-render> and push resolved text via setName — the hidden virtual renderer fallback will be removed entirely.

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Set the resolved name text. Intended to be called by the block entry element when its canonical <umb-ufm-render> reports updated text via umb-ufm-resolved.

      Parameters

      • text: string

        the resolved text.

      Returns void