akveo/ng2-smart-table

Any way to send some data to custom filter component?

shreyshahh opened this issue · 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.