This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(): make demo checkboxes not go full-width
Closes #1338
- Loading branch information
Marcy Sutton
committed
Apr 8, 2015
1 parent
d5b77bd
commit fbed048
Showing
2 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
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,23 +1,28 @@ | ||
|
||
<div ng-controller="AppCtrl"> | ||
|
||
<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1"> | ||
Checkbox 1: {{ data.cb1 }} | ||
</md-checkbox> | ||
|
||
<md-checkbox ng-model="data.cb2" aria-label="Checkbox 2" ng-true-value="'yup'" ng-false-value="'nope'" class="md-warn"> | ||
Checkbox 2 (md-warn): {{ data.cb2 }} | ||
</md-checkbox> | ||
|
||
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3"> | ||
Checkbox: Disabled | ||
</md-checkbox> | ||
|
||
<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true"> | ||
Checkbox: Disabled, Checked | ||
</md-checkbox> | ||
|
||
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary"> | ||
Checkbox (md-primary): No Ink | ||
</md-checkbox> | ||
<div> | ||
<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1"> | ||
Checkbox 1: {{ data.cb1 }} | ||
</md-checkbox> | ||
</div> | ||
<div> | ||
<md-checkbox ng-model="data.cb2" aria-label="Checkbox 2" ng-true-value="'yup'" ng-false-value="'nope'" class="md-warn"> | ||
Checkbox 2 (md-warn): {{ data.cb2 }} | ||
</md-checkbox> | ||
</div> | ||
<div> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3"> | ||
Checkbox: Disabled | ||
</md-checkbox> | ||
</div> | ||
<div> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true"> | ||
Checkbox: Disabled, Checked | ||
</md-checkbox> | ||
</div> | ||
<div> | ||
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary"> | ||
Checkbox (md-primary): No Ink | ||
</md-checkbox> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
body { | ||
padding: 20px; | ||
.checkboxDemo1 div { | ||
clear: both; | ||
} | ||
.checkboxDemo1 md-checkbox { | ||
float: left; | ||
} |