Appearance
Mobile Document Scanner API Reference / ToolbarButtonConfig
Type Alias: ToolbarButtonConfig
ToolbarButtonConfig =
Partial<Pick<ToolbarButton,"icon"|"label"|"className"|"isHidden">>
Defined in: src/views/utils/types.ts:219
A simplified configuration type for toolbar buttons.
Example
javascript
const documentScanner = new Dynamsoft.DocumentScanner({
license: "YOUR_LICENSE_KEY_HERE", // Replace this with your actual license key
correctionViewConfig: {
toolbarButtonsConfig: {
fullImage: {
isHidden: true
},
detectBorders: {
icon: "path/to/new_icon.png", // Change to the actual path of the new icon
label: "Custom Label"
}
}
}
});