IProps | @jupyterlab (original) (raw)

Interface for CommandToolbarButtonComponent props.

Index

Properties

Optionalargs

Command arguments

Optionalcaption

caption?: string

Overrides command caption

commands

Application commands registry

Optionalicon

Overrides command icon

id

id: string

Command unique id

Optionallabel

label?: string | CommandFunc<string>

Overrides command label

OptionalnoFocusOnClick

noFocusOnClick?: boolean

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