-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Need to Set default Value in ngx-mat-select-search #147
Comments
can you please provide your sample code? Currently this is not possible, however it should be possible by adding a ngx-mat-select-search/src/app/mat-select-search/mat-select-search.component.html Lines 9 to 10 in d577317
e.g. <input matInput
class="mat-select-search-input"
[value]="value" @sehgalneha would you like to provide a PR that implements this? |
@sehgalneha I filed #148 to allow setting the initial value as simple as public bankFilterCtrl: FormControl = new FormControl('my initial value'); Version 1.7.4 will be released soon |
public bankFilterCtrl: FormControl = new FormControl('my initial value'); According to this we have set value in our control : "this.bankFilterCtrl.value" |
Yes, this should work after PR #148 being merged |
#147: Allow setting the initial value of the search input
this is released with version 1.7.4 public bankFilterCtrl: FormControl = new FormControl('my initial search value'); See this example: https://stackblitz.com/edit/github-zwffsh?file=src/app/examples/01-single-selection-example/single-selection-example.component.ts |
I have Used ngx-mat-select-search for append the user list according to our project requirement. Need to Set text on the first load of page. The List is shown as according to search text but unable to set text on the ngx-mat-select-search . Please check out snippet.
Can you please provide the solution to set text on ngx-mat-select-search. I am looking forward for your response.
Thanks and Regards
Bhumika
The text was updated successfully, but these errors were encountered: