> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt.

# Interface: ApiVisualEditorCheckboxDef

Defined in: [extensions/visualeditor.ts:43](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L43)

One field of the edit form (`checkboxesDef.wpMinoredit`, `wpWatchthis`, `wpWatchlistExpiry`).

## Properties

### class?

> `optional` **class?**: `string`

Defined in: [extensions/visualeditor.ts:63](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L63)

PHP class of the OOUI widget; set for the `wpWatchlistExpiry` dropdown.

***

### default?

> `optional` **default?**: `string` | `boolean`

Defined in: [extensions/visualeditor.ts:84](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L84)

Whether the box starts checked — or the preselected expiry string for the
`wpWatchlistExpiry` dropdown. A real `boolean` under fv2 for checkboxes.

***

### id?

> `optional` **id?**: `string`

Defined in: [extensions/visualeditor.ts:45](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L45)

Element id, e.g. `wpMinoredit`.

***

### invisibleLabel?

> `optional` **invisibleLabel?**: `true`

Defined in: [extensions/visualeditor.ts:78](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L78)

Label rendered invisibly (`wpWatchlistExpiry` only).

***

### label-id?

> `optional` **label-id?**: `string`

Defined in: [extensions/visualeditor.ts:54](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L54)

DOM id of the labelled element.

***

### label-message?

> `optional` **label-message?**: `string`

Defined in: [extensions/visualeditor.ts:48](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L48)

Message key holding the label.

***

### legacy-name?

> `optional` **legacy-name?**: `string`

Defined in: [extensions/visualeditor.ts:57](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L57)

Legacy form field name.

***

### options?

> `optional` **options?**: `object`\[]

Defined in: [extensions/visualeditor.ts:66](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L66)

Dropdown options as label/value pairs (`wpWatchlistExpiry` only).

#### data?

> `optional` **data?**: `string`

Value submitted when the option is chosen.

#### label?

> `optional` **label?**: `string`

Option text shown in the dropdown.

***

### title-message?

> `optional` **title-message?**: `string`

Defined in: [extensions/visualeditor.ts:51](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L51)

Message key for the label's `title` attribute; hook-provided checkboxes only.

***

### tooltip?

> `optional` **tooltip?**: `string`

Defined in: [extensions/visualeditor.ts:60](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L60)

Access-key/tooltip message slug, e.g. `minoredit`.

***

### value-attr?

> `optional` **value-attr?**: `string`

Defined in: [extensions/visualeditor.ts:75](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/visualeditor.ts#L75)

Widget config option carrying the current value (`wpWatchlistExpiry` only).
