Skip to content

scenius-software/sc-clr-autocomplete

Repository files navigation

Scenius Clarity Auto-Complete Component

npm

Check out our Github Pages for a live demo and complete description of this project.

Demo

Demo

Works with Angular Reactive Forms.

HTML
<form clrForm autocomplete="off" [formGroup]="form">
  <sc-clr-autocomplete [labelText]="'Autocomplete'" [autocompleteModel]="model"
                       formControlName="autocomplete"></sc-clr-autocomplete>
</form>
TypeScript
private _demoModel = [ 'Hello', 'world', 'this', 'is', 'an', 'auto complete', 'component', 'for', 'clarity' ];
this.model = new StaticAutocompleteModel(this._demoModel);