Created
November 23, 2017 10:58
-
-
Save anjmao/a5e7f637f226880a71b1dd4cca3a8b2b to your computer and use it in GitHub Desktop.
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
<h3>Multiselect example with custom template and typeahead</h3> | |
<pre> | |
<code class="html"> | |
<ng-select [items]="items" | |
notFoundText="No results found" | |
typeToSearchText="Search for github account" | |
bindLabel="login" | |
[placeholder]="placeholder" | |
[multiple]="multiple" | |
[typeahead]="typeahead" | |
[(ngModel)]="githubAccount"> | |
<ng-template ng-option-tmp let-item="item"> | |
<img [src]="item.avatar_url" width="20px" height="20px"> {{item.login}} | |
</ng-template> | |
</ng-select> | |
</code> | |
</pre> | |
<ng-select [items]="items" | |
notFoundText="No results found" | |
typeToSearchText="Search for github account" | |
bindLabel="login" | |
[placeholder]="placeholder" | |
[multiple]="multiple" | |
[typeahead]="typeahead" | |
[(ngModel)]="githubAccount"> | |
<ng-template ng-option-tmp let-item="item"> | |
<img [src]="item.avatar_url" width="20px" height="20px"> {{item.login}} | |
</ng-template> | |
</ng-select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment