-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typeahead): add dropup option (#2390)
- Loading branch information
1 parent
7c87162
commit c6ef77b
Showing
8 changed files
with
61 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<pre class="card card-block card-header">Model: {{selected | json}}</pre> | ||
<input [(ngModel)]="selected" | ||
[typeahead]="states" | ||
[dropup]="true" | ||
class="form-control"> |
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,22 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-typeahead-dropup', | ||
templateUrl: './dropup.html' | ||
}) | ||
export class DemoTypeaheadDropupComponent { | ||
public selected:string; | ||
public states:string[] = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', | ||
'California', 'Colorado', | ||
'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', | ||
'Illinois', 'Indiana', 'Iowa', | ||
'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', | ||
'Michigan', 'Minnesota', | ||
'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', | ||
'New Jersey', 'New Mexico', | ||
'New York', 'North Dakota', 'North Carolina', 'Ohio', 'Oklahoma', 'Oregon', | ||
'Pennsylvania', 'Rhode Island', | ||
'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', | ||
'Virginia', 'Washington', | ||
'West Virginia', 'Wisconsin', 'Wyoming']; | ||
} |
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
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
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