Select

pgSelect is a fork of NG-ZORRO implementation of select dropdown. Initial credits go to the author

Importing

First import it to your app module or any submodule as you wish

import { pgSelectModule} from '../@pages/components/select/select.module';
@NgModule({
  imports: [pgSelectModule,...]
})
export class AppModule(){}

How to use

Basic Select with Search

<pg-select style="width: 100%;" [(ngModel)]="selectedOption" [PlaceHolder]="'Select Option'" AllowClear ShowSearch>
    <pg-option
    *ngFor="let option of options"
    [Label]="option.label"
    [Value]="option"
    [Disabled]="option.disabled">
    </pg-option>
</pg-select>

API

Options API

Last updated