Skip to content

docs(examples): replace md-input with mdInput #3135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/examples/chips-stacked/chips-stacked-example.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<md-chip-list class="md-chip-list-stacked">
<md-chip-list class="mat-chip-list-stacked">
<md-chip *ngFor="let chipColor of availableColors"
selected="true"
color="{{chipColor.color}}">
Expand Down
16 changes: 8 additions & 8 deletions src/examples/input-form/input-form-example.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<form class="example-form">
<md-input-container class="example-full-width">
<input md-input placeholder="Company (disabled)" disabled value="Google">
<input mdInput placeholder="Company (disabled)" disabled value="Google">
</md-input-container>

<table class="example-full-width" cellspacing="0"><tr>
<td><md-input-container class="example-full-width">
<input md-input placeholder="First name">
<input mdInput placeholder="First name">
</md-input-container></td>
<td><md-input-container class="example-full-width">
<input md-input placeholder="Long Last Name That Will Be Truncated">
<input mdInput placeholder="Long Last Name That Will Be Truncated">
</md-input-container></td>
</tr></table>

<p>
<md-input-container class="example-full-width">
<textarea md-input placeholder="Address">1600 Amphitheatre Pkwy</textarea>
<textarea mdInput placeholder="Address">1600 Amphitheatre Pkwy</textarea>
</md-input-container>
<md-input-container class="example-full-width">
<textarea md-input placeholder="Address 2"></textarea>
<textarea mdInput placeholder="Address 2"></textarea>
</md-input-container>
</p>

<table class="example-full-width" cellspacing="0"><tr>
<td><md-input-container class="example-full-width">
<input md-input placeholder="City">
<input mdInput placeholder="City">
</md-input-container></td>
<td><md-input-container class="example-full-width">
<input md-input placeholder="State">
<input mdInput placeholder="State">
</md-input-container></td>
<td><md-input-container class="example-full-width">
<input md-input #postalCode maxlength="5" placeholder="Postal Code" value="94043">
<input mdInput #postalCode maxlength="5" placeholder="Postal Code" value="94043">
<md-hint align="end">{{postalCode.value.length}} / 5</md-hint>
</md-input-container></td>
</tr></table>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/input-overview/input-overview-example.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<md-input-container>
<input md-input placeholder="Favorite food" value="Sushi">
<input mdInput placeholder="Favorite food" value="Sushi">
</md-input-container>
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ <h2 class="example-h2">Slider configuration</h2>

<section class="example-section">
<md-input-container class="example-margin">
<input md-input type="number" placeholder="Value" [(ngModel)]="value">
<input mdInput type="number" placeholder="Value" [(ngModel)]="value">
</md-input-container>
<md-input-container class="example-margin">
<input md-input type="number" placeholder="Min value" [(ngModel)]="min">
<input mdInput type="number" placeholder="Min value" [(ngModel)]="min">
</md-input-container>
<md-input-container class="example-margin">
<input md-input type="number" placeholder="Max value" [(ngModel)]="max">
<input mdInput type="number" placeholder="Max value" [(ngModel)]="max">
</md-input-container>
<md-input-container class="example-margin">
<input md-input type="number" placeholder="Step size" [(ngModel)]="step">
<input mdInput type="number" placeholder="Step size" [(ngModel)]="step">
</md-input-container>
</section>

Expand All @@ -23,7 +23,7 @@ <h2 class="example-h2">Slider configuration</h2>
Auto ticks
</md-checkbox>
<md-input-container class="example-margin" *ngIf="showTicks && !autoTicks">
<input md-input type="number" placeholder="Tick interval" [(ngModel)]="tickInterval">
<input mdInput type="number" placeholder="Tick interval" [(ngModel)]="tickInterval">
</md-input-container>
</section>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<md-input-container>
<input md-input value="Disco party!" placeholder="Message" #message>
<input mdInput value="Disco party!" placeholder="Message" #message>
</md-input-container>

<md-input-container>
<input md-input value="Dance" placeholder="Action" #action>
<input mdInput value="Dance" placeholder="Action" #action>
</md-input-container>

<button md-button (click)="openSnackBar(message.value, action.value)">Show snack-bar</button>
2 changes: 1 addition & 1 deletion src/lib/chips/chip-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {SPACE, LEFT_ARROW, RIGHT_ARROW} from '../core/keyboard/keycodes';
@Component({
moduleId: module.id,
selector: 'md-chip-list, mat-chip-list',
template: `<div class="md-chip-list-wrapper"><ng-content></ng-content></div>`,
template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`,
host: {
// Properties
'tabindex': '0',
Expand Down