IProps | @jupyterlab (original) (raw)
Interface IProps
Interface for CommandToolbarButtonComponent props.
interface IProps {
args?: ReadonlyJSONObject;
caption?: string;
commands: CommandRegistry;
icon?: LabIcon;
id: string;
label?: string | CommandFunc<string>;
noFocusOnClick?: boolean;
}
Index
Properties
args? caption? commands icon? id label? noFocusOnClick?
Properties
Optional
args
args?: ReadonlyJSONObject
Command arguments
Optional
caption
caption?: string
Overrides command caption
commands
commands: CommandRegistry
Application commands registry
Optional
icon
icon?: LabIcon
Overrides command icon
id
id: string
Command unique id
Optional
label
label?: string | CommandFunc<string>
Overrides command label
Optional
noFocusOnClick
noFocusOnClick?: boolean
Trigger the button on onMouseDown event rather than onClick, to avoid giving the focus on the button.