siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
174 stars 62 forks source link

Category Filter | Category Filter must have provision to show category based on some condition in dropdown menu. #1265

Closed Jayesh26 closed 1 month ago

Jayesh26 commented 1 month ago

Prerequisites

Suggestion / feature request

In "[categories]" we have added list of categories but in real time we have use case to show/hide some category based on previous category and its value.

categories = [ Cat1:{ }, Cat2:{ }, Cat3:{ }, Cat4:{ } ]

So eg. Cat1 has selected value as Cat1-Val In this case we do not want to show Cat2 and Cat3 in the dropdown list once user click on selecting new category.

image

nuke-ellington commented 1 month ago

Hello @Jayesh26,

You should be able to set the categories property during runtime to adapt it to the current selection. We will not be able to provide custom logic like the one you described since this is too specific. Please feel free to reopen the issue in case the above solution does not work from a technical standpoint.