search/src/search-field/search-field.component.ts
SearchField is a wrapper for SearchField. The wrapper/field-architecture gives the consuming app direct access to and thus full control over the wrapped field.
Example:
Example :// Component class
protected searchForm: FormGroup = new FormGroup({
query: new FormControl(''),
});<!-- Component template -->
<talenra-search-field">
<input talenra-search formControlName="query" />
</talenra-search-field>import { SearchFieldComponent } from '@talenra/components/search';
| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | talenra-search-field |
| imports |
ClearButtonComponent
IconComponent
ButtonComponent
FieldUnderlineComponent
|
| styleUrls | ./search-field.component.scss |
| templateUrl | ./search-field.component.html |
Inputs |
Outputs |
| size |
Type : TSearchFieldSize
|
Default value : SearchFieldSize.M
|
|
Determines the size of SearchField. Defaults to 'm'. Example :See SearchFieldSize |
| clear |
Type : SearchClear
|
|
Event emitted when SearchField's |
| search |
Type : SearchTrigger
|
|
Event emitted when the SearchField is submitted. Example : |