Appearance
Mobile Document Scanner API Reference / ToolbarButton
Interface: ToolbarButton
Defined in: src/views/utils/types.ts:231
Interface defining toolbar button properties and behavior.
Remarks
Used internally to create toolbar buttons. Customize via ToolbarButtonConfig.
Properties
className?
optionalclassName?:string
Defined in: src/views/utils/types.ts:264
Additional CSS class name to apply to the button element.
icon
icon:
string
Defined in: src/views/utils/types.ts:243
Path or data URL to the button icon image.
id
id:
string
Defined in: src/views/utils/types.ts:237
Unique identifier for the button.
isDisabled?
optionalisDisabled?:boolean
Defined in: src/views/utils/types.ts:272
Flag indicating whether the button is disabled (non-interactive).
Default Value
ts
false
@publicisHidden?
optionalisHidden?:boolean
Defined in: src/views/utils/types.ts:280
Flag indicating whether the button is hidden from the toolbar.
Default Value
ts
false
@publiclabel
label:
string
Defined in: src/views/utils/types.ts:249
Text label displayed below the button icon.
onClick?
optionalonClick?: () =>void|Promise<void>
Defined in: src/views/utils/types.ts:258
Click handler function invoked when the button is clicked.
Returns
void | Promise<void>
Remarks
This handler can be synchronous or asynchronous. When provided through ToolbarButtonConfig, it overrides the button's default behavior.