Skip to content

Commit

Permalink
fix search input component selector (#9470)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika authored Mar 25, 2024
1 parent 35ab4cc commit 1952f48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/content-services/components/search-input.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
A minimalistic search input component that formats user query according to the provided fields.

```html
<app-search-input
<adf-search-input
[fields]="['cm:name']"
(changed)="onSearchQueryChanged($event)">
</app-search-input>
</adf-search-input>
```

> Notes: this component does not perform search operations.
Expand All @@ -28,10 +28,10 @@ A minimalistic search input component that formats user query according to the p
## Examples

```html
<app-search-input
<adf-search-input
[fields]="['cm:name', 'cm:title', 'cm:description', 'TEXT', 'TAG']"
(changed)="onSearchQueryChanged($event)">
</app-search-input>
</adf-search-input>
```

In the example above, the search is performed against the following fields:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { MatInputModule } from '@angular/material/input';
import { TranslateModule } from '@ngx-translate/core';

@Component({
selector: 'app-search-input',
selector: 'adf-search-input',
standalone: true,
imports: [CommonModule, MatFormFieldModule, MatInputModule, TranslateModule],
templateUrl: `./search-input.component.html`,
Expand Down

0 comments on commit 1952f48

Please sign in to comment.