Skip to content

Instantly share code, notes, and snippets.

@zoltan-nz
Created December 29, 2013 11:22
Show Gist options
  • Save zoltan-nz/8169435 to your computer and use it in GitHub Desktop.
Save zoltan-nz/8169435 to your computer and use it in GitHub Desktop.
App.DateField = Ember.TextField.extend
didInsertElement: ->
self = this
this.$().datepicker({format: 'dd.mm.yyyy'}).on 'changeDate', ->
self.$().trigger('change')
{{view App.DateField valueBinding="mydate"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment