ng2-smart-table
ng2-smart-table copied to clipboard
Any way to send some data to custom filter component?
Hi, I want to send some data to my custom filter component. Based on that data I want to apply some dynamic logic. Following is my working code for loading custom components in the filter.
{
filter: {
type: 'custom',
component: CustomComponent,
},
filterFunction: (value, query) => {
if (value.includes(query)) {
return true;
} else {
return false;
}
},
}
Now I want to send some data to my CustomComponent. Any way I can do that? Thanks in advance.