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

    Class UmbBlockActionBase<ArgsMetaType>Abstract

    Base class for block action API implementations. Provides default no-op implementations of getHref(), execute(), and getValidationDataPath(). Subclasses override only the methods they need.

    Type Parameters

    • ArgsMetaType

    Hierarchy (View Summary)

    Implements

    Index
    • 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 href location, the action will act as a link. The execute method will not be called. Kept alongside getHrefObservable for actions whose href never changes after resolving once; implement the observable variant instead when the href can change during the action's lifetime.

      Returns Promise<string | undefined>

    • Returns Promise<string | undefined>

      Use getValidationDataPathObservable() instead. Optional validation data path for displaying an invalid badge on the action button. Optional validation data path for displaying an invalid badge on the action button. When provided, the default kind element creates a validation state controller and renders a badge when validation messages exist at the given path.

    • 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