Skip to content

CheckboxCommand.onInit method

CheckboxCommand › onInit

Called once with the created checkbox element, to initialize its state.

In ModalCommandsRenderMode.Buttons mode the element is created but never appended — the button is a view of it — so the same initialization code serves both render modes.

Signature:

onInit(checkboxEl: HTMLInputElement): void

Parameters:

ParameterTypeDescription
checkboxElHTMLInputElementThe created checkbox element.

Returns: void