File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed
Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,31 @@ storiesOf("Checkbox", module).addDecorator(
1212 . addDecorator ( withKnobs )
1313 . add ( "Basic" , ( ) => ( {
1414 template : `
15- <ibm-checkbox
16- [checked]="checked"
17- [disabled]="disabled"
18- [indeterminate]="indeterminate"
19- (change)="onChange($event)"
20- (indeterminateChange)="onIndeterminateChange($event)">
21- Checkbox
22- </ibm-checkbox>
15+ <fieldset class="bx--fieldset">
16+ <legend class="bx--label">Checkbox</legend>
17+ <!-- input + label -->
18+ <ibm-checkbox
19+ checked="true"
20+ (change)="onChange($event)">
21+ Checkbox
22+ </ibm-checkbox>
23+ <!-- input + label indeterminate -->
24+ <ibm-checkbox
25+ indeterminate="true"
26+ (change)="onChange($event)"
27+ (indeterminateChange)="onIndeterminateChange($event)">
28+ Indeterminate checkbox
29+ </ibm-checkbox>
30+ <!-- input + label disabled -->
31+ <ibm-checkbox
32+ disabled="true"
33+ (change)="onChange($event)"
34+ (indeterminateChange)="onIndeterminateChange($event)">
35+ Disabled checkbox
36+ </ibm-checkbox>
37+ </fieldset>
2338 ` ,
2439 props : {
25- checked : boolean ( "checked" , false ) ,
26- disabled : boolean ( "disabled" , false ) ,
27- indeterminate : boolean ( "indeterminate" , false ) ,
2840 onChange : action ( "Change fired!" ) ,
2941 onIndeterminateChange : action ( "Indeterminate change fired!" )
3042 }
You can’t perform that action at this time.
0 commit comments