This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] toggle switch documentation updates (#3103)
Signed-off-by: Jeremy Wilken <[email protected]>
- Loading branch information
1 parent
559bf8e
commit 5790fa5
Showing
16 changed files
with
478 additions
and
167 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<input type="checkbox" clrToggle /> |
12 changes: 12 additions & 0 deletions
12
src/website/src/app/documentation/demos/toggles/ng/disabled.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<clr-toggle-container> | ||
<label>Disabled toggle switch example</label> | ||
<clr-checkbox-wrapper> | ||
<input type="checkbox" clrToggle name="options" value="option1" [(ngModel)]="options" disabled /> | ||
<label>Option 1</label> | ||
</clr-checkbox-wrapper> | ||
<clr-checkbox-wrapper> | ||
<input type="checkbox" clrToggle name="options" value="option2" [(ngModel)]="options" disabled /> | ||
<label>Option 2</label> | ||
</clr-checkbox-wrapper> | ||
<clr-control-helper>Helper text</clr-control-helper> | ||
</clr-toggle-container> |
13 changes: 13 additions & 0 deletions
13
src/website/src/app/documentation/demos/toggles/ng/helpers.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<clr-toggle-container> | ||
<label>Full toggle switch</label> | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle name="options" required value="option1" [(ngModel)]="options" /> | ||
<label>Option 1</label> | ||
</clr-toggle-wrapper> | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle name="options" required value="option2" [(ngModel)]="options" /> | ||
<label>Option 2</label> | ||
</clr-toggle-wrapper> | ||
<clr-control-helper>Helper text</clr-control-helper> | ||
<clr-control-error>This field is required!</clr-control-error> | ||
</clr-toggle-container> |
13 changes: 13 additions & 0 deletions
13
src/website/src/app/documentation/demos/toggles/ng/inline.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<clr-toggle-container clrInline> | ||
<label>Inline toggle switch example</label> | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle name="options" required value="option1" [(ngModel)]="options" /> | ||
<label>Option 1</label> | ||
</clr-toggle-wrapper> | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle name="options" required value="option2" [(ngModel)]="options" /> | ||
<label>Option 2</label> | ||
</clr-toggle-wrapper> | ||
<clr-control-helper>Helper text</clr-control-helper> | ||
<clr-control-error>This field is required!</clr-control-error> | ||
</clr-toggle-container> |
8 changes: 8 additions & 0 deletions
8
src/website/src/app/documentation/demos/toggles/ng/label.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle value="option1" name="options" /> | ||
<label>Option 1</label> | ||
</clr-toggle-wrapper> | ||
<clr-toggle-wrapper> | ||
<input type="checkbox" clrToggle value="option2" name="options" /> | ||
<label>Option 2</label> | ||
</clr-toggle-wrapper> |
60 changes: 0 additions & 60 deletions
60
src/website/src/app/documentation/demos/toggles/toggles-example.demo.html
This file was deleted.
Oops, something went wrong.
70 changes: 0 additions & 70 deletions
70
src/website/src/app/documentation/demos/toggles/toggles-example.demo.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.