My requirement is to add a background color of selected items in a table

Though I was able to getSelectedItems. Is there a way to get items that were deselected in Skuid so I can remove color.

A couple of questions:
What is the use case you are trying to fulfil? (How does it differ from the theme builder capabilities) 

Also, could you show the source code for your attempt?
–Tom Scalzo