projects/onto-search/src/lib/onto-search-field/models/search-field-configuration.ts
Configuration of the search input and mat-chip integration.
Static removable |
removable: |
Default value: true
|
Determines whether a selected phrase can be deleted from list |
Static selectable |
selectable: |
Default value: true
|
Determines whether a selected phrase can be selected |
Static separatorKeysCodes |
separatorKeysCodes: |
A list of characters that can be used as a phrase separator |
import {COMMA, ENTER} from '@angular/cdk/keycodes';
/**
* Configuration of the search input and mat-chip integration.
*/
export class SearchFieldConfiguration {
/**
* Determines whether a selected phrase can be selected
*/
static selectable: boolean = true;
/**
* Determines whether a selected phrase can be deleted from list
*/
static removable: boolean = true;
/**
* A list of characters that can be used as a phrase separator
*/
static separatorKeysCodes: number[] = [ENTER, COMMA];
}