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

SUI Select Option only has value property and no placeholder property #437

Open
abbasogaji opened this issue Jul 10, 2019 · 1 comment
Open

Comments

@abbasogaji
Copy link

abbasogaji commented Jul 10, 2019

the sui select option does not support placeholders on option tags ...i.e
<option value="hasValueProperty">PLACEHOLDER-HERE</option>
no placeholder property for <sui-select-option>

@aligorji
Copy link

aligorji commented Sep 7, 2019

You can use template

<sui-select
      ...
      [optionTemplate]="optionTemplate"
      ...>
  <sui-select-option *ngFor="let option of searchSelect.filteredOptions" [value]="option"></sui-select-option>
</sui-select>

<ng-template let-option #optionTemplate>
  <div>{{option.property}}</div>
</ng-template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants