@w11k/ngx-select
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 { }

Readme

Keywords

none

Package Sidebar

Install

npm i @w11k/ngx-select

Weekly Downloads

17

Version

1.0.0

License

none

Unpacked Size

122 kB

Total Files

20

Last publish

Collaborators

  • kaihenzler
  • romanroe
  • sengmann
  • fvonberg
  • m_sallat
  • pburgmer