Events

composed

Triggered when the template is fully rendered in the Revolvapp.

Here is the example of catch the event:

$RE('#content', {
    path: '/revolvapp/dist/',
    template: '/mytemplates/template/index.html',
    callbacks: {
        composed: function() {
            var content = this.getHtml();
            console.log(content)
        }
    }
});

changed

Triggered when a block or card get changes.

$RE('#content', {
    path: '/revolvapp/dist/',
    template: '/mytemplates/template/index.html',
    callbacks: {
        changed: function(sender, instance) {
            // sender - a module or service that sent the event
            // instance - an instance of block or card
        }
    }
});