I have an Ember Component as So...
export default Ember.Component.extend({
didInsertElement: function() {
this.$().sortable({
connectWith: '.droppable-box',
receive: (e, ui) => {
}
});
},
tagName: 'ul',
classNames: ['droppable-box', 'list-unstyled']
});
The elements inside the sortable components are also components...
export default Ember.Component.extend({
tagName: 'li'
});
The receive event is fired whenever a element is moved into a sortable component.
I am given the DOM element, but I want to get access to the instance of that Ember Component. Any ideas?
Aucun commentaire:
Enregistrer un commentaire