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

    A toolbar tool that renders a trigger button and a dropdown panel.

    Items can be supplied via the items input (takes priority) or as projected content. Read the selected item id via the selectedItemId signal on the itemRef after a toolAction event fires.

    <ui-toolbar (toolAction)="onAction($event)">
    <ui-dropdown-tool id="insert" label="Insert"
    [items]="[{ id: 'table', label: 'Table' }, { id: 'image', label: 'Image' }]"
    />
    </ui-toolbar>

    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.

    items: InputSignal<DropdownToolItem[]> = ...

    Items to display in the dropdown panel (takes priority over projected content).

    label: InputSignal<string> = ...

    Human-readable label shown in the tool.

    selectedItemId: WritableSignal<string | undefined> = ...

    The id of the most recently selected dropdown item.

    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