Showing posts with label unselected. Show all posts
Showing posts with label unselected. Show all posts

Friday, February 14, 2014

Styling Selectable Items With Classes

The selectable widget marks each item, as it's selected, with the ui-selected class. In fact, this is how the widget is able to determine selected items versus unselected ones. One thing it doesn't do, however, is apply any kind of styling to the selected element — that is left up to the developer. I kind of like that, given that I'm always tweaking the default widget styles anyway. There are two ways to go about visually indicating that an item has been selected.