We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6fa4f commit fb85d3eCopy full SHA for fb85d3e
src/components/CheckBox/index.ts
@@ -5,6 +5,7 @@ import { ViewProps, setProps as setViewProps } from "../View";
5
interface CheckBoxProps extends ViewProps {
6
children?: string;
7
text?: string;
8
+ checked?: boolean;
9
}
10
11
const setProps = (
@@ -15,6 +16,10 @@ const setProps = (
15
16
const setter: CheckBoxProps = {
17
set text(checkboxText: string) {
18
widget.setText(checkboxText);
19
+ },
20
+
21
+ set checked(isChecked: boolean) {
22
+ widget.setChecked(isChecked);
23
24
};
25
Object.assign(setter, newProps);
0 commit comments