File

projects/onto-search/src/lib/onto-search-field/models/search-field-configuration.ts

Description

Configuration of the search input and mat-chip integration.

Properties

Static removable
removable: boolean
Default value: true

Determines whether a selected phrase can be deleted from list

Static selectable
selectable: boolean
Default value: true

Determines whether a selected phrase can be selected

Static separatorKeysCodes
separatorKeysCodes: number[]

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];
}

results matching ""

    No results matching ""