Trevixal API
    Preparing search index...

    Interface Toolbar

    interface Toolbar {
        element: HTMLElement;
        groups: readonly ToolbarGroupInfo[];
        destroy(): void;
        getGroupOrder(): readonly string[];
        refresh(): void;
        setGroupOrder(order: readonly string[]): void;
        setMessages(messages: Readonly<Record<string, string>> | undefined): void;
        setShortcutLabels(
            labels: Readonly<Record<string, string | null>> | undefined,
        ): void;
        setVisibleGroups(names: readonly string[]): void;
    }
    Index
    element: HTMLElement
    groups: readonly ToolbarGroupInfo[]

    Every group the bar was built with, shown or hidden, in its default order.

    • Returns void

    • The shown groups' current order, by name.

      Returns readonly string[]

    • Repaint every control. The toolbar already refreshes on each transaction; call this when state the document does not hold changes, a format painter arming, for instance.

      Returns void

    • Rearrange the groups; names are matched as for ToolbarOptions.groupOrder.

      Parameters

      • order: readonly string[]

      Returns void

    • Relabel every button and group from another catalogue, in place: a new UI language.

      Parameters

      • messages: Readonly<Record<string, string>> | undefined

      Returns void

    • Re-print the tooltips' keys, e.g. after the user rebinds one.

      Parameters

      • labels: Readonly<Record<string, string | null>> | undefined

      Returns void

    • Show these groups, in this order, and hide the rest: what Help ▸ Customize toolbar applies. A hidden group leaves the bar whole and comes back as it was, so nothing is rebuilt and the page need not reload.

      Parameters

      • names: readonly string[]

      Returns void