Enum representing checkbox state.
const Ui = await import('LensStudio:Ui'); const parent = null as unknown as import('LensStudio:Ui').Widget; const checkbox = new Ui.CheckBox(parent); checkbox.checkState = Ui.CheckState.Checked; console.log(`CheckBox state: ${checkbox.checkState}`); checkbox.checkState = Ui.CheckState.Unchecked; console.log(`After uncheck: ${checkbox.checkState}`); console.log(`PartiallyChecked=${Ui.CheckState.PartiallyChecked}`); Copy
const Ui = await import('LensStudio:Ui'); const parent = null as unknown as import('LensStudio:Ui').Widget; const checkbox = new Ui.CheckBox(parent); checkbox.checkState = Ui.CheckState.Checked; console.log(`CheckBox state: ${checkbox.checkState}`); checkbox.checkState = Ui.CheckState.Unchecked; console.log(`After uncheck: ${checkbox.checkState}`); console.log(`PartiallyChecked=${Ui.CheckState.PartiallyChecked}`);
Checked state.
Partially checked state.
Unchecked state.
Enum representing checkbox state.
Example