# Type Alias: ToolbarButtonConfig

[Mobile Document Scanner API Reference](../index.md) / ToolbarButtonConfig

# Type Alias: ToolbarButtonConfig

> **ToolbarButtonConfig** = `Partial`\<`Pick`\<[`ToolbarButton`](../interfaces/ToolbarButton.md), `"icon"` \| `"label"` \| `"className"` \| `"isHidden"`\>\>

Defined in: [src/views/utils/types.ts:219](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/types.ts#L219)

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"
            }
        }
    }
});
```
