Skip to content

CheckboxCommand.onInit

CheckboxCommand › onInit

Type: (checkboxEl: HTMLInputElement) => void

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.