@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function makeToolbarActionGroup

    • Build a toolbar action-GROUP node (a dropdown of child actions) that opts into the object toolbar. Unlike a flat makeToolbarAction, a group MUST be returned from a connector: extension callback — not actions:, which always stamps type: AppGraphNode.ActionType on every returned node and would clobber the group's type — with the extension's relation set to AppGraphNode.action so graph.actions(nodeId) picks the group up as one of the node's actions. The group's own nested actions are wired automatically by @dxos/app-graph (it recurses into any NodeArg.actions field), so the children need no separate extension.

      Parameters

      • __namedParameters: {
            actions: NodeArg<ActionData<any>, Record<string, any>>[];
            disabled?: boolean;
            icon?: string;
            iconOnly?: boolean;
            id: string;
            label:
                | string
                | [
                    string,
                    { count?: number; defaultValue?: string; ns: string
                    | readonly string[] },
                ];
            testId?: string;
        }
        • actions: NodeArg<ActionData<any>, Record<string, any>>[]
        • Optionaldisabled?: boolean

          Render the trigger disabled, so the toolbar can keep showing an affordance that currently has nothing to offer (paired with an empty actions) rather than dropping the control entirely.

        • Optionalicon?: string
        • OptionaliconOnly?: boolean

          Render the trigger as icon-only (label becomes tooltip/aria). Defaults to true for compact toolbars; set false to show the label text next to the icon.

        • id: string
        • label:
              | string
              | [
                  string,
                  { count?: number; defaultValue?: string; ns: string
                  | readonly string[] },
              ]
        • OptionaltestId?: string

          Test id for the group's dropdown trigger.

      Returns NodeArg<typeof actionGroupSymbol>