Skip to content

Single and Multi-Select Angular Component with Material and Bootstrap Templates

License

Notifications You must be signed in to change notification settings

w11k/ngx-select

Repository files navigation

NgxSelect

Simple multiple select with filter.

##Installation Use npm or yarn to install npm install --save @w11k/ngx-select or yarn add @w11k/ngx-select

##Usage Import NgxSelectModule into your AppModule and in your feature module import without forRoot()

@NgModule({ imports: [NgxSelectModule.forRoot()] })
export class AppModule { }

@NgModule({ imports: [NgxSelectModule] })
export class FeatureModule { }

##Customisation You can provide different labes using the Angular dependency injection. Simply provide another implementation of DefaultNgxSelectIntlService

@Injectable()
export class NgxSelectCustomIntlService extends DefaultNgxSelectIntlService {

  allNoneSelect = 'Alle / Keine';
  filterPlaceholder = 'Filter';
  searchFieldPlaceholder = 'Suche';
  selected = 'ausgewählt';

  constructor() {
    super();
  }
}

@NgModule({ imports: [NgxSelectModule.forRoot({intlService: NgxSelectCustomIntlService})] })
export class AppModule { }

About

Single and Multi-Select Angular Component with Material and Bootstrap Templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •