# ui.Button.setDisabled

<br />

Sets whether the button is disabled.

<br />

Returns this button.

| Usage | Returns |
|---|---|
| `Button.setDisabled(disabled)` | ui.Button |

| Argument | Type | Details |
|---|---|---|
| this: `ui.button` | ui.Button | The ui.Button instance. |
| `disabled` | Boolean | Whether the button is disabled. |