derickbailey/backbone.modelbinding — Issue #37: Suggestion: Add "Class" binding
Author: ronadams
Created: 2011-10-28 23:03:52+00:00
State: open

It would be fantastic to have the same sort of 'class' binding that knockout.js employs. The whole add/remove class based on the value of a model property is really useful. If I have time I'll try to fork and add it myself but, until then, wanted to record it as a nice-to-have.

Knockout's format:
data-bind="css: { 'loading' : loading, 'maximized' : maximized }"