Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchConfigurationInputComponent

Hierarchy

  • AbstractSearchConfigurationInputComponent
    • SearchConfigurationInputComponent

Index

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>[]>)

Type declaration

    • (userInput: Observable<string>): Observable<SearchAutocompleteOption<unknown>[]>
    • Parameters

      • userInput: Observable<string>

      Returns Observable<SearchAutocompleteOption<unknown>[]>

operatorTemplatePartType: typeof OperatorTemplatePartType = OperatorTemplatePartType
renderSelection: ((option: SearchAutocompleteOption<unknown>) => string)

Type declaration

    • (option: SearchAutocompleteOption<unknown>): string
    • Lambda that is used to preserve this reference in HTML binding.

      See [_renderSelection()]{@link AbstractSearchPredicateComponent#_renderSelection} for information about the transform function.

      Parameters

      • option: SearchAutocompleteOption<unknown>

        the {@link SearchAutocompleteOption} object that was selected in the autocomplete list.

      Returns string

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

Type declaration

    • (a: number, b: OperatorTemplatePart): any
    • Parameters

      • a: number
      • b: OperatorTemplatePart

      Returns any

ɵcmp: unknown
ɵfac: unknown

Accessors

  • set configurationInput(input: MatSelect | ElementRef<HTMLInputElement>): void
  • Parameters

    • input: MatSelect | ElementRef<HTMLInputElement>

    Returns void

Methods

  • _renderSelection(option: SearchAutocompleteOption<unknown>): string
  • Transforms a {@link 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

  • _trackByTemplateParts(index: number, item: OperatorTemplatePart): any
  • Function for tracking Template parts in ngFor.

    Parameters

    • index: number

      index of the ngFor element

    • item: OperatorTemplatePart

      template part

    Returns any

  • clearConfigurationInput(): void
  • Returns void

  • clearOperatorInput(): void
  • Returns void

Generated using TypeDoc