Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Search input

maxSS edited this page Sep 17, 2019 · 12 revisions
import { JamSearchInputModule } from 'ngx-jsonapi-material';

Selector: jam-search-input

Properties
Name Value type Required Description
@Input() text string true
@Output() textChange EventEmitter<string> false

Simple search input

<jam-search-input
    [(text)]="filter_search"
></jam-search-input>

<table *ngFor="let book of books.data | filter: filter_search">
    <!-- code... -->
</table>
import { FilterPipe } from 'ngx-jsonapi-material';
.
.
.
public filter_search: string: '';

public constructor(private filterPipe: FilterPipe) {
    this.book.data = filterPipe.transform(this.books.data, filter_search);
}
Clone this wiki locally