Interface for CommandToolbarButtonComponent props. It extends the ToolbarButtonComponent props.

interface IProps {
    args?: ReadonlyJSONObject;
    "aria-controls"?: string;
    "aria-expanded"?: Booleanish;
    "aria-haspopup"?:
        | boolean
        | "false"
        | "true"
        | "grid"
        | "dialog"
        | "menu"
        | "listbox"
        | "tree";
    caption?: string;
    commands: CommandRegistry;
    icon?: LabIcon;
    id: string;
    label?: string
    | CommandFunc<string>;
    noFocusOnClick?: boolean;
}

Hierarchy

  • ToolbarAriaMenuButtonProps
    • IProps

Properties

Command arguments

"aria-controls"?: string

Identifies the element (or elements) whose contents or presence are controlled by the current element.

aria-owns.

"aria-expanded"?: Booleanish

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

"aria-haspopup"?:
    | boolean
    | "false"
    | "true"
    | "grid"
    | "dialog"
    | "menu"
    | "listbox"
    | "tree"

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

caption?: string

Overrides command caption

commands: CommandRegistry

Application commands registry

icon?: LabIcon

Overrides command icon

id: string

Command unique id

label?: string | CommandFunc<string>

Overrides command label

noFocusOnClick?: boolean

Trigger the button on onMouseDown event rather than onClick, to avoid giving the focus on the button.