ng2-smart-table icon indicating copy to clipboard operation
ng2-smart-table copied to clipboard

Any way to send some data to custom filter component?

Open shreyshahh opened this issue 2 years ago • 0 comments

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.

shreyshahh avatar Aug 26 '22 05:08 shreyshahh