@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Class UIToolbarItemAbstract

    Abstract base directive for all toolbar tool components.

    Concrete tool components extend this class and register themselves via DI forwarding so UIToolbar can discover them through contentChildren(UIToolbarItem).

    providers: [
    { provide: UIToolbarItem, useExisting: forwardRef(() => MyTool) }
    ]

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ariaLabel: InputSignal<string> = ...

    Accessible label forwarded to the native element as aria-label.

    disabled: InputSignal<boolean> = ...

    Whether this item is disabled.

    icon: InputSignal<string | undefined> = ...

    SVG inner-content string for an optional icon (use UIIcons.Lucide.*).

    id: InputSignal<string> = ...

    Unique identifier for this toolbar item.

    itemAction: OutputEmitterRef<ToolActionEvent> = ...

    Emitted when the user triggers an action on this item.

    label: InputSignal<string> = ...

    Human-readable label shown in the tool.

    tooltip: InputSignal<string> = ...

    Tooltip text shown on pointer hover.

    Methods

    • Deactivate (un-check / un-press) this item.

      No-op by default. Overridden by UIToggleTool to set checked to false, enabling radio-style exclusivity in UIToggleGroupTool.

      Returns void

    • Emit a ToolActionEvent for this item.

      Parameters

      • event: MouseEvent | null

        The originating mouse event, or null for programmatic triggers.

      Returns void