forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(slide-toggle): remove CRLF line endings (angular#1712)
* Previously the slide-toggle files were commited with CRLF line endings, but to provide consistency those should be only LF.
- Loading branch information
1 parent
b541f09
commit 3b80a6c
Showing
5 changed files
with
800 additions
and
800 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,29 +1,29 @@ | ||
<div> | ||
|
||
<md-slide-toggle color="primary" [(ngModel)]="firstToggle"> | ||
Default Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<md-slide-toggle [(ngModel)]="firstToggle" disabled> | ||
Disabled Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<md-slide-toggle [disabled]="firstToggle"> | ||
Disable Bound | ||
</md-slide-toggle> | ||
|
||
<p>Example where the slide toggle is required inside of a form.</p> | ||
|
||
<form #form="ngForm" (ngSubmit)="onFormSubmit()"> | ||
|
||
<md-slide-toggle name="slideToggle" required ngModel> | ||
Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<p> | ||
<button md-raised-button type="submit">Submit Form</button> | ||
</p> | ||
|
||
</form> | ||
|
||
<div> | ||
|
||
<md-slide-toggle color="primary" [(ngModel)]="firstToggle"> | ||
Default Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<md-slide-toggle [(ngModel)]="firstToggle" disabled> | ||
Disabled Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<md-slide-toggle [disabled]="firstToggle"> | ||
Disable Bound | ||
</md-slide-toggle> | ||
|
||
<p>Example where the slide toggle is required inside of a form.</p> | ||
|
||
<form #form="ngForm" (ngSubmit)="onFormSubmit()"> | ||
|
||
<md-slide-toggle name="slideToggle" required ngModel> | ||
Slide Toggle | ||
</md-slide-toggle> | ||
|
||
<p> | ||
<button md-raised-button type="submit">Submit Form</button> | ||
</p> | ||
|
||
</form> | ||
|
||
</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,17 +1,17 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'switch-demo', | ||
templateUrl: 'slide-toggle-demo.html', | ||
styleUrls: ['slide-toggle-demo.css'], | ||
}) | ||
export class SlideToggleDemo { | ||
firstToggle: boolean; | ||
|
||
onFormSubmit() { | ||
alert(`You submitted the form.`); | ||
} | ||
|
||
} | ||
import {Component} from '@angular/core'; | ||
|
||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'switch-demo', | ||
templateUrl: 'slide-toggle-demo.html', | ||
styleUrls: ['slide-toggle-demo.css'], | ||
}) | ||
export class SlideToggleDemo { | ||
firstToggle: boolean; | ||
|
||
onFormSubmit() { | ||
alert(`You submitted the form.`); | ||
} | ||
|
||
} |
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,33 +1,33 @@ | ||
<label class="md-slide-toggle-label"> | ||
|
||
<div class="md-slide-toggle-container"> | ||
<div class="md-slide-toggle-bar"></div> | ||
|
||
<div class="md-slide-toggle-thumb-container" | ||
(slidestart)="_onDragStart()" | ||
(slide)="_onDrag($event)" | ||
(slideend)="_onDragEnd()"> | ||
|
||
<div class="md-slide-toggle-thumb"> | ||
<div class="md-ink-ripple"></div> | ||
</div> | ||
</div> | ||
|
||
<input #input class="md-slide-toggle-input md-visually-hidden" type="checkbox" | ||
[id]="getInputId()" | ||
[required]="required" | ||
[tabIndex]="tabIndex" | ||
[checked]="checked" | ||
[disabled]="disabled" | ||
[attr.name]="name" | ||
[attr.aria-label]="ariaLabel" | ||
[attr.aria-labelledby]="ariaLabelledby" | ||
(blur)="_onInputBlur()" | ||
(focus)="_onInputFocus()" | ||
(change)="_onChangeEvent($event)" | ||
(click)="_onInputClick($event)"> | ||
</div> | ||
<span class="md-slide-toggle-content"> | ||
<ng-content></ng-content> | ||
</span> | ||
</label> | ||
<label class="md-slide-toggle-label"> | ||
|
||
<div class="md-slide-toggle-container"> | ||
<div class="md-slide-toggle-bar"></div> | ||
|
||
<div class="md-slide-toggle-thumb-container" | ||
(slidestart)="_onDragStart()" | ||
(slide)="_onDrag($event)" | ||
(slideend)="_onDragEnd()"> | ||
|
||
<div class="md-slide-toggle-thumb"> | ||
<div class="md-ink-ripple"></div> | ||
</div> | ||
</div> | ||
|
||
<input #input class="md-slide-toggle-input md-visually-hidden" type="checkbox" | ||
[id]="getInputId()" | ||
[required]="required" | ||
[tabIndex]="tabIndex" | ||
[checked]="checked" | ||
[disabled]="disabled" | ||
[attr.name]="name" | ||
[attr.aria-label]="ariaLabel" | ||
[attr.aria-labelledby]="ariaLabelledby" | ||
(blur)="_onInputBlur()" | ||
(focus)="_onInputFocus()" | ||
(change)="_onChangeEvent($event)" | ||
(click)="_onInputClick($event)"> | ||
</div> | ||
<span class="md-slide-toggle-content"> | ||
<ng-content></ng-content> | ||
</span> | ||
</label> |
Oops, something went wrong.