looker-open-source/components

Change Filter component options

bullypb23 opened this issue · 3 comments

Hi,

Is it possible to change the Filter component's available options? We want to use @looker/components library but we don't need all available options in the component.
Screenshot 2022-02-24 at 14 01 48

Hi @bullypb23,

It isn't possible at the moment to customize or specify which filter matching logic appears in that list. The options are derived from the type of value you're filtering on. E.G. Numeric values get one set, string values get another, etc.

It looks like your screenshot is in regards to string filters. Would you mind elaborating a little more on your specific use case, and which options you were hoping to hide? That may help us with future planning to see if we could support that as a feature request.

Thank you!
-Daniel

Hi @dbchristopher,

Thank you for your response. We are using mostly string filters and we only need is, is not, contains, and doesn't contain options available for our use case. We are looker filter components but not to filter data from looker but other data source so we have only those options available for filtering.

Best regards,
Vladimir.

Our internal ticket number is 246808753.