Option for different color scheme for active filters

Currently, there are different colors for toggle filters to show whether they are active.  It would be great if other filter types had similar functionality.  When a user comes back to a view (that uses saved filters), the active filters would be highlighted with a different color so they would know not all records are being displayed.

…paying attention to actual filter labels can be a lot to ask :slight_smile:

I actually Had asked a similar question months ago.

See Emily’s last post on a possible solution. I had not tried it as me and custom code are not good friends :smiley:

If you or anyone  ever make it work, I would appreciate being shared the code

http://community.skuid.com/skuid/topics/selected-filter-css-change

Thanks, Dave.  I appreciate the link.  Unfortunately, that approach would use the text of the filter label instead of the filter state itself.

I threw this together in the console. It’s very hacky, but it should get you started:

skuid.$.each(skuid.$('#myTable .nx-conditiontoken'),function(i,obj){console.log(skuid.$(this).data());<br>if(skuid.$(this).data().component &amp;&amp; skuid.$(this).data().component.list &amp;&amp; (!skuid.$(this).data().component.list.selectedKey || skuid.$(this).data().component.list.selectedKey === "__reset")) skuid.$(skuid.$('#myTable .nx-conditiontoken')[i]).addClass('disabled');<br>if(skuid.$(this).data().originalValue &amp;&amp; !skuid.$(this).data().originalValue.end &amp;&amp; !skuid.$(this).data().originalValue.start) skuid.$(skuid.$('#myTable .nx-conditiontoken')[i]).addClass('disabled');<br>});

this assumes you have a table with the unique id “myTable”

Jared~

Hopefully you’ll be able to use what Matt provided above. Thanks for suggesting this, we’ll bring it to the devs for consideration on a future release.

Thanks!
Karen

Hi Matt,

Thanks for taking the time to put this together. It was pretty cool to load the page and see all of the filters with the same faded look of an inactive toggle. Looking forward to working out the rest and sharing the result…I’m sure I’ll have questions along the way.

Thanks again!
Jared

Thanks, Karen.  It would be great to have this as a declarative option.