Class SearchConfigurationInputComponent

Hierarchy

  • AbstractSearchConfigurationInputComponent
    • SearchConfigurationInputComponent

Constructors

Properties

configuration: ConfigurationInput
editable: boolean

Whether the contents displayed in this component can be edited by the user or not.

Defaults to true

filterOptions: ((userInput: Observable<string>) => Observable<SearchAutocompleteOption<unknown>[]>)
operatorTemplatePartType: typeof OperatorTemplatePartType = OperatorTemplatePartType
renderSelection: ((option: SearchAutocompleteOption<unknown>) => string)

Lambda that is used to preserve this reference in HTML binding.

See [_renderSelection()]AbstractSearchPredicateComponent#_renderSelection for information about the transform function.

Type declaration

    • (option): string
    • Parameters

      • option: SearchAutocompleteOption<unknown>

        the SearchAutocompleteOption object that was selected in the autocomplete list.

      Returns string

searchInputType: typeof SearchInputType = SearchInputType
selectedCategory: Category<any>
trackByTemplateParts: ((a: number, b: OperatorTemplatePart) => any)
ɵcmp: unknown
ɵfac: unknown

Accessors

  • set configurationInput(input): void
  • Parameters

    • input: ElementRef<HTMLInputElement> | MatSelect

    Returns void

Methods

  • Transforms a SearchAutocompleteOption object into it's name. Used for displaying user selection in the input field, when an autocomplete option is selected.

    Parameters

    • option: SearchAutocompleteOption<unknown>

      the object we want to transform. It might not exist if user input doesn't match any autocomplete option

    Returns string

    option name if it exists, empty string otherwise

  • Function for tracking Template parts in ngFor.

    Parameters

    • index: number

      index of the ngFor element

    • item: OperatorTemplatePart

      template part

    Returns any

  • Returns void

  • Returns void