Open vmariano opened 10 years ago
sounds good to me, maybe before edit
, after edit
events using emitter could help ?
At the begining I thinking in something like
var options = {
afterEdit: function () {
...
},
beforeEdit: function () {
...
}
}
placeholder(el, 'type here',options)
But with emmiter souns good too. Do you suggest a namespace for name emmiter events?
@vmariano i think just emit('before edit')
, emit('after edit')
would be good :)
Yeah, that. I try to save data, when the user finish the edition. I think a possible handle callbacks in each state.