-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): checkbox indeterminate example (#236)
- Loading branch information
1 parent
fb885b8
commit 074e97a
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/mosaic-examples/checkbox-indeterminate/checkbox-indeterminate-example.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/** No CSS for this example */ | ||
/** No CSS for this example **/ |
6 changes: 5 additions & 1 deletion
6
packages/mosaic-examples/checkbox-indeterminate/checkbox-indeterminate-example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<mc-checkbox [checked]="true" [indeterminate]="true"> Indeterminate</mc-checkbox> | ||
<div class="mc-body"> | ||
<mc-checkbox [checked]="parentChecked" [indeterminate]="parentIndeterminate" (change)="toggleChecked()" > All fruits</mc-checkbox> | ||
<p *ngFor="let fruit of fruits; let i = index"><mc-checkbox [checked]="fruit.checked" (change)="updateCheckboxes(i)" >{{fruit.name}}</mc-checkbox> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters