Skip to content

Page Dynamic Search - Exemplo com API #1152

Discussion options

You must be logged in to vote

Consegui resolver. Talvez não seja a melhor forma ou a mais correta, mas resolveu!!

<po-page-dynamic-search p-title="Listagem de Clientes "
[p-actions]="actions"
[p-filters]="filters"
(p-quick-search)="onQuickSearch($event)"
(p-advanced-search)="onAdvancedSearch($event)"
[p-breadcrumb]="breadcrumb">

onQuickSearch(filter: any) {

const tag = Object.keys(filter)[0]
const search = Object.values(filter)[0];

filter ? this.searchItems('nameclient', filter) : this.getClientList();

}

onAdvancedSearch(filter: any) {

let tag = Object.keys(filter)[0]
let search = Object.values(filter)[0];

filter ? this.searchItems(tag,search) : this.getClientList();

}

searchItems(tag:any, search:any){

thi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brunoromeiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant