Skip to content

SuggestModalCommandBuilder.addCheckbox method

SuggestModalCommandBuilder › addCheckbox

Adds an interactive checkbox to the instruction bar, bound to a modifier+key shortcut that toggles it.

Signature:

addCheckbox(command: CheckboxCommand): this

Parameters:

ParameterTypeDescription
commandCheckboxCommandThe checkbox command to add.

Returns: thisThe builder instance for chaining.