SimpleSearchComponent
component
Component Metadata
Section titled “Component Metadata”Selector: yuv-simple-search
Standalone: Yes
Implements: AfterViewInit
Inputs
Section titled “Inputs”Type: SearchQuery | null
The search query
Outputs
Section titled “Outputs”clearInput
Section titled “clearInput”Type: void
Emitted once the user hits clear input button
queryChange
Section titled “queryChange”Type: SearchQuery
querySubmit
Section titled “querySubmit”Type: SearchQuery
Emitted once the user submits the search
targetSelectionChanged
Section titled “targetSelectionChanged”Type: (string | number)[]
Emitted once selected targets change
typeAggregation
Section titled “typeAggregation”Type: ObjectTypeAggregation[]
Properties
Section titled “Properties”Type: FormGroup
Default Value: this.#fb.group(\{ term: [''], targets: [] \})
searchInput
Section titled “searchInput”Type: unknown
Default Value: viewChild.required<ElementRef<HTMLInputElement>>('searchInput')
translate
Section titled “translate”Type: unknown
Default Value: inject(TranslateService)
Methods
Section titled “Methods”onClear
Section titled “onClear”onClear($event: Event): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| $event | Event |
onSearch
Section titled “onSearch”onSearch(): void