Skip to content

Commit

Permalink
Merge pull request #140 from botoxparty/patch-2
Browse files Browse the repository at this point in the history
Add functionality to define input type
  • Loading branch information
macjohnny authored Apr 10, 2019
2 parents 4b5b7d6 + d0e15a4 commit b15c239
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Furthermore, it provides the following inputs:
/** Label of the search placeholder */
@Input() placeholderLabel = 'Suche';

/** Type of the search input field */
@Input() type = "text";

/** Label to be shown when no entries are found. Set to null if no message should be shown. */
@Input() noEntriesFoundLabel = 'Keine Optionen gefunden';

Expand Down
1 change: 1 addition & 0 deletions src/app/mat-select-search/mat-select-search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<input matInput
class="mat-select-search-input"
autocomplete="off"
[type]="type"
#searchSelectInput
(keydown)="_handleKeydown($event)"
(input)="onInputChange($event.target.value)"
Expand Down
3 changes: 3 additions & 0 deletions src/app/mat-select-search/mat-select-search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, AfterViewIni

/** Label of the search placeholder */
@Input() placeholderLabel = 'Suche';

/** Type of the search input field */
@Input() type = "text";

/** Label to be shown when no entries are found. Set to null if no message should be shown. */
@Input() noEntriesFoundLabel = 'Keine Optionen gefunden';
Expand Down

0 comments on commit b15c239

Please sign in to comment.