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

    Class UmbBlockEntriesContext<BlockManagerContextTokenType, BlockManagerContextType, BlockType, BlockLayoutType, BlockOriginData>Abstract

    Type Parameters

    Hierarchy (View Summary)

    Index
    _catalogueRouteBuilderState: UmbBasicState<UmbModalRouteBuilder | undefined> = ...
    _dataPath?: string
    _layoutEntries: UmbArrayState<BlockLayoutType, unknown, BlockLayoutType[]> = ...
    _retrieveManager: Promise<BlockManagerContextType | undefined>
    _workspacePath: UmbStringState<undefined> = ...
    canCreate: Observable<boolean>
    catalogueRouteBuilder: Observable<UmbModalRouteBuilder | undefined> = ...
    hasLibraryElements: Observable<boolean> = ...
    layoutEntries: Observable<BlockLayoutType[]> = ...
    layoutEntriesLength: Observable<number> = ...
    libraryAllowedElementTypeKeys: Observable<string[]> = ...
    workspacePath: Observable<string | undefined> = ...
    • Returns the element type uniques allowed at the library root that overlap with the given block types — used to filter the library picker in the block catalogue modal.

      Parameters

      • blockTypes: BlockType[]

        The block types to filter by.

      Returns Promise<string[]>

      The allowed element type uniques.

    • 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. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Get 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; use getByKey for that.

      Parameters

      • contentKey: string

        The content key to look up.

      Returns BlockLayoutType | undefined

      The first matching layout entry.

    • The 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.

      MDN Reference

      Parameters

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

      Returns void