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.
2 parents 6d6fa4f + 8aaf3ff commit 754fa60Copy full SHA for 754fa60
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,9 @@ const setProps = (
15
16
const setter: CheckBoxProps = {
17
set text(checkboxText: string) {
18
widget.setText(checkboxText);
19
+ },
20
+ set checked(isChecked: boolean) {
21
+ widget.setChecked(isChecked);
22
23
};
24
Object.assign(setter, newProps);
0 commit comments