As stated in this answer. I wanted to add a new function for the apostrophe-image-widget slide function but I'm no sure how to do exactly.
To explain it further I think it makes sense to have an stop function for the widget player which can be called like data-next
or data-previous
maybe data-stop
would be good.
So my question is can I do it in:
// example of a widget manager with a play method.
// You don't need this file at all if you
// don't need a player.
apos.define('apostrophe-images-widgets', {
extend: 'apostrophe-pieces-widgets',
construct: function(self, options) {
self.play = function($widget, data, options) {
$widget.projector(options);
};
}
});
And can I have maybe a little hint how to access these data-next
functions and extend them as described ?