# Interface: RectifyModeSettings<Button>

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

# Interface: RectifyModeSettings\<Button\>

Defined in: [src/settings/settings.ts:308](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L308)

The settings of one mode of the rectify screen, whose buttons are `Button`.

## Type Parameters

### Button

`Button` *extends* [`RectifyScreenButton`](../type-aliases/RectifyScreenButton.md) = [`RectifyScreenButton`](../type-aliases/RectifyScreenButton.md)

## Properties

### buttons?

> `optional` **buttons?**: [`ButtonSettingsFor`](../type-aliases/ButtonSettingsFor.md)\<`Button`\>

Defined in: [src/settings/settings.ts:313](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L313)

The settings of each button: whether the screen hides it, and a handler that
runs before its default action.
