My component
{{remind-me datetime=model.reminderDatetime comment=model.reminderComment}}
My remind-me.js:
import Ember from 'ember';
export default Ember.Component.extend({
picker: $(),
didInsertElement() {
this._super(...arguments);
this.picker = $('.pickadate').pickadate({
format: 'mmm dd, yyyy',
onOpen: function() {
// how to get there this.get('datetime') ?
}
});
}
});
How to pass component attribute datetime to jQuery callback onOpen? Thank you for answers.
Aucun commentaire:
Enregistrer un commentaire