and_cesbo icon

Tab for web interface

and_cesbo | PRO | 02/18/17 03:29:50 PM UTC | 0 ⭐ | 644 👁️ | Never ⏰ | []
text |

900 B

|

None

|

0 👍

/

0 👎

astra_storage["/mod.js"] = astra_storage["/mod.js"] .. [[
(function() {
"use strict";
 window.ExampleModule = {
    label: "Example",
    link: "#/example",
    order: 999,
};
 ExampleModule.run = function() {
    //
};
 ExampleModule.render = function(object) {
    object
        .setStyle("padding", "60px 20px 20px 20px")
        .addClass("text-center")
        .addChild($.element("iframe")
            .addAttr("src", "http://" + location.host)
            .setStyle("width", "100%")
            .setStyle("height", "400px"));
     self.on("destroy", function() {
        //
    });
};
 ExampleModule.init = function() {
    window.renderContent = ExampleModule.render;
     $.body
        .bindScope({})
        .on("destroy", function() {
            delete(window.renderContent);
        });
};
 app.modules.push(ExampleModule);
app.menu.push(ExampleModule);
})();
]]

Comments