feat: Checkbox and Radio classes, todo comment
This commit is contained in:
parent
cdf15935f0
commit
d585975091
1 changed files with 16 additions and 2 deletions
|
@ -5,3 +5,17 @@ export class FormControl {
|
||||||
label?: string;
|
label?: string;
|
||||||
labelPosition?: 'right' | 'left' = 'left';
|
labelPosition?: 'right' | 'left' = 'left';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: Create classes for each control type
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class Checkbox extends FormControl {
|
||||||
|
type: 'checkbox';
|
||||||
|
checked: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Radio extends FormControl {
|
||||||
|
type: 'checkbox';
|
||||||
|
checked: boolean;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue