OptionalbuttonTool group of the button. Stored only; currently has no effect.
OptionalbuttonIcon used by tool buttons of this tool that have no icon of their own.
OptionalbuttondataElement of the tool's button; disabling the tool disables this element.
OptionaldocumentNumber of the document viewer to register the tool with; 1 by default or when that viewer does not exist.
OptionalshowWhen the button shows the tool color; 'active' by default. Stored only; currently has no effect.
OptionalshowWhether the tool shows style presets; true by default. Stored only; currently has no effect.
Name of the tool; used with setToolMode and as the toolName of tool buttons.
The tool instance; its name is set to toolName.
OptionaltooltipTitle (or translation key) used by tool buttons of this tool that have no title of their own.
Parameters of UI.registerTool.