Created
January 20, 2011 18:56
-
-
Save erichocean/788385 to your computer and use it in GitHub Desktop.
How to transform the status property of a content object for use by a view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valueBinding: SC.Binding.transform(function(value, binding) { | |
if (value === SC.Record.READY_DIRTY || | |
value === SC.Record.READY_NEW) { | |
return YES; | |
} else return NO; | |
}).from('Todos.taskController.status') |
mauritslamers
commented
Feb 16, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment