mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
fix search input component selector (#9470)
This commit is contained in:
parent
35ab4ccb1f
commit
1952f4852f
@ -5,10 +5,10 @@
|
|||||||
A minimalistic search input component that formats user query according to the provided fields.
|
A minimalistic search input component that formats user query according to the provided fields.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<app-search-input
|
<adf-search-input
|
||||||
[fields]="['cm:name']"
|
[fields]="['cm:name']"
|
||||||
(changed)="onSearchQueryChanged($event)">
|
(changed)="onSearchQueryChanged($event)">
|
||||||
</app-search-input>
|
</adf-search-input>
|
||||||
```
|
```
|
||||||
|
|
||||||
> Notes: this component does not perform search operations.
|
> Notes: this component does not perform search operations.
|
||||||
@ -28,10 +28,10 @@ A minimalistic search input component that formats user query according to the p
|
|||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<app-search-input
|
<adf-search-input
|
||||||
[fields]="['cm:name', 'cm:title', 'cm:description', 'TEXT', 'TAG']"
|
[fields]="['cm:name', 'cm:title', 'cm:description', 'TEXT', 'TAG']"
|
||||||
(changed)="onSearchQueryChanged($event)">
|
(changed)="onSearchQueryChanged($event)">
|
||||||
</app-search-input>
|
</adf-search-input>
|
||||||
```
|
```
|
||||||
|
|
||||||
In the example above, the search is performed against the following fields:
|
In the example above, the search is performed against the following fields:
|
||||||
|
@ -22,7 +22,7 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-search-input',
|
selector: 'adf-search-input',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, MatFormFieldModule, MatInputModule, TranslateModule],
|
imports: [CommonModule, MatFormFieldModule, MatInputModule, TranslateModule],
|
||||||
templateUrl: `./search-input.component.html`,
|
templateUrl: `./search-input.component.html`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user