I’m trying to override the handleSave() action on a custom component with this code:
component.save = function(){ <br> console.log('SAVE');<br> $.when(skuid.ui.Editor.prototype.handleSave.call(component.editor,true)).then(function(){<br> <br> // Do some fun stuff to the ui with jQuery here.<br> <br> return component;<br> });<br> };
I’m calling the prototype because of the instructions here. But when this function runs, the model’s changes aren’t actually being saved.
How can I set up my custom component’s editor such that the data actually saves, AND I can run some extra code?
