Skip to main content

LensStudio:Ui.CheckState

Enum

Enum representing checkbox state.

Index

Example

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}`);

Enumeration Members

Checked

Checked: number

Checked state.


PartiallyChecked

PartiallyChecked: number

Partially checked state.


Unchecked

Unchecked: number

Unchecked state.