akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.06k stars 1.51k forks source link

Functional select. Custom template. #2020

Open Blucbo opened 5 years ago

Blucbo commented 5 years ago

Issue type

I'm submitting a ... (check one with "x")

Issue description

Current behavior: Can not use custom template for option.

Expected behavior: Do we have possibility create custom template(option)?

Steps to reproduce:

Like this:

<nb-select placeholder="Select Showcase" [(selected)]="selectedItem">
      <ng-template  let-item="item">
        <img height="15" width="15" [src]="item.avatar"/>
        <b>{{item.name}}</b>
      </ng-template>
</nb-select>

instead of:

<nb-select placeholder="Select Showcase" [(selected)]="selectedItem">
      <nb-option value="">Option empty</nb-option>
      <nb-option value="0">Option 0</nb-option>
      <nb-option value="1">Option 1</nb-option>
      <nb-option value="2">Option 2</nb-option>
      <nb-option value="3">Option 3</nb-option>
      <nb-option value="4">Option 4</nb-option>
 </nb-select>

Lacking a lot of functions as in this select https://ng-select.github.io/ng-select#/templates

RoWEN-FCUB commented 3 years ago

Any update on this?