Skip to content
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

Changing placeHolderLabel and noEntriesFoundLabel shows no text #164

Closed
nfgallimore opened this issue Jul 10, 2019 · 3 comments
Closed

Changing placeHolderLabel and noEntriesFoundLabel shows no text #164

nfgallimore opened this issue Jul 10, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@nfgallimore
Copy link

nfgallimore commented Jul 10, 2019

Labels do not show up using inputs

<h3>Multiple selection</h3>
<p>
  <mat-form-field>
    <mat-select [formControl]="bankMultiCtrl" placeholder="Banks" [multiple]="true" #multiSelect>
      <ngx-mat-select-search 
      [placeholderLabel]="hello"
      [noEntriesFoundLabel]="hello"
      [formControl]="bankMultiFilterCtrl"></ngx-mat-select-search>
      <mat-option *ngFor="let bank of filteredBanksMulti | async" [value]="bank">
        {{bank.name}}
      </mat-option>
    </mat-select>
  </mat-form-field>
</p>
<p>
  Selected Banks:
</p>
<ul *ngFor="let bank of bankMultiCtrl?.value">
  <li>{{bank.name}}</li>
</ul>
@nfgallimore nfgallimore added the bug Something isn't working label Jul 10, 2019
@nfgallimore nfgallimore changed the title [BUG] Changing placeHolderLabel and noEntriesFoundLabel [BUG] Changing placeHolderLabel and noEntriesFoundLabel shows no text Jul 10, 2019
@nfgallimore
Copy link
Author

nfgallimore commented Jul 10, 2019

Solved using:

[placeholderLabel]="'Find bank...'" 
[noEntriesFoundLabel]="'no matching bank found'"

As written in readme.

Why do we have to have the extra single quotes?

@nfgallimore nfgallimore reopened this Jul 10, 2019
@nfgallimore nfgallimore changed the title [BUG] Changing placeHolderLabel and noEntriesFoundLabel shows no text Changing placeHolderLabel and noEntriesFoundLabel shows no text Jul 10, 2019
@nfgallimore nfgallimore changed the title Changing placeHolderLabel and noEntriesFoundLabel shows no text Changing placeHolderLabel and noEntriesFoundLabel shows no text Jul 10, 2019
@macjohnny
Copy link
Member

You can also have
placeholderLabel=„find Bank“

@nfgallimore
Copy link
Author

I think you mean ''Find Bank''

With two '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants