Skip to content

Instantly share code, notes, and snippets.

@wycats
Forked from stefanpenner/gist:1255659
Created October 1, 2011 05:51
Show Gist options
  • Save wycats/1255664 to your computer and use it in GitHub Desktop.
Save wycats/1255664 to your computer and use it in GitHub Desktop.
{{view App.ToolbarField valueBinding="Sheduler.toolbarController.selectedDate"}}
DATE =
from: (controllerDate) ->
new Date(controllerDate)
to: (viewDate) ->
viewDate.toString()
App.ToolbarField = SC.TextField.extend
valueBinding: SC.Binding.from('Scheduler.toolbarController.selectedDate').transform(DATE)
Scheduler.toolbarController = SC.Object.create
selectedDate: <something>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment