SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface InputCommandButtonProps<STATE, CONTEXT>

    interface InputCommandButtonProps<STATE = any, CONTEXT = any> {
        command?: ResolvedCommand<STATE, CONTEXT, void>;
        commandKey?: string;
        commandState?: STATE;
        disabled?: boolean;
        disableHover?: boolean;
        groupKey?: string;
        icon?:
            | ReactNode
            | ((command: ResolvedCommand<STATE, CONTEXT, void>) => ReactNode);
        inputProps?: InputBaseComponentProps;
        inputRef?: Ref<any>;
        label?: ReactNode | (() => ReactNode);
        parseInput?: (value: string) => any;
        propsTooltip?: any;
        selected?: boolean;
        shortcut?: IKeyStroke | IKeyStroke[];
        showLabel?: boolean;
        variant?: CommandButtonType;
    }

    Type Parameters

    • STATE = any
    • CONTEXT = any

    Hierarchy

    Index
    command?: ResolvedCommand<STATE, CONTEXT, void>
    commandKey?: string
    commandState?: STATE

    Optional state for this specific command button.

    to undefined
    
    disabled?: boolean
    disableHover?: boolean
    groupKey?: string

    The panel/group the button renders in (e.g. 'contextMenu', 'cellStyle') — selects the command's matching groupLabels variant. Omit for the full label. (Named groupKey, NOT "scope" — command scopes are contributors; this is purely a presentation surface.)

    icon?:
        | ReactNode
        | ((command: ResolvedCommand<STATE, CONTEXT, void>) => ReactNode)
    inputProps?: InputBaseComponentProps
    inputRef?: Ref<any>

    Pass a ref to the input element.

    label?: ReactNode | (() => ReactNode)
    parseInput?: (value: string) => any
    propsTooltip?: any

    Tooltip properties. If this is specified then the tooltips are used. Do not provide a child as this component will be the child.

    selected?: boolean
    shortcut?: IKeyStroke | IKeyStroke[]

    The shortcut to display.

    This is display only and doesn't actually track the shortcut. Override the display for the shortcut on the command (if available).

    showLabel?: boolean

    Render the label as visible button content (alongside the icon) rather than tooltip-only. Toolbar buttons are icon-only by default; menu items always show their label. See CommandButtonEntry.showLabel for the entry-level equivalent.

    false
    
    variant?: CommandButtonType

    How the button will be styles.

    CommandButtonType.Toolbar