ngx-ui icon indicating copy to clipboard operation
ngx-ui copied to clipboard

Support template defined groups in `ngx-select`

Open Hypercubed opened this issue 4 years ago • 0 comments
trafficstars

Support template defined groups in ngx-select similar to native optgroup.

Example:

<ngx-select [groupBy]="'type'">
  <ngx-optgroup [name]="'IOS'">
    <ngx-select-option [name]="'Breach'" [value]="'breach'"></ngx-select-option>
    <ngx-select-option [name]="'DDOS'" [value]="'ddos'"></ngx-select-option>
  </ngx-optgroup>
  <ngx-optgroup [name]="'MOX'">
    <ngx-select-option [name]="'Physical'" [value]="'Physical'"></ngx-select-option>
  </ngx-optgroup>
</ngx-select>

Hypercubed avatar Sep 27 '21 18:09 Hypercubed