Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let myplugin = (function () {
- //
- //
- var postInit = function() {
- var myLayout = window.plugins['goldenlayout'].getGL();
- // register our component and replace the default messagewindow
- myLayout.registerComponent( 'mycomponent', function (container, componentState) {
- let mycssdiv = $('<div>').addClass('content myCSS');
- mycssdiv.attr('types', 'mapout');
- mycssdiv.attr('updateMethod', 'newlines');
- mycssdiv.appendTo( container.getElement() );
- container.on("tab", plugins['goldenlayout'].onTabCreate);
- });
- console.log("MyPlugin Initialized.");
- }
- return {
- init: function () {},
- postInit: postInit,
- }
- })();
- window.plugin_handler.add("myplugin", myplugin);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement