GLayout-new layout
How do I make an glayout-new layout?
What is a glayout-new layout? How do you make a glayout-new layout? This script and codes were developed by Alexandru Puiu on 27 November 2022, Sunday.
GLayout-new layout - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>GLayout-new layout</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="//golden-layout.com/files/latest/js/goldenlayout.js"></script>
<link type="text/css" rel="stylesheet" href="//golden-layout.com/files/latest/css/goldenlayout-base.css" />
<link type="text/css" rel="stylesheet" href="//golden-layout.com/files/latest/css/goldenlayout-dark-theme.css" />
<input type="button" value="HidePlaylistLib" onClick="doHide();"/>
<input type="button" value="ShowPlaylistLib" onClick="doShow();"/>
<input type="button" value="HidePlaylistEditor" onClick="doHide2();"/>
<input type="button" value="ShowPlaylistEditor" onClick="doShow2();"/>
<div id="wrapper"> <ul id="menuContainer"></ul> <div id="layoutContainer"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
GLayout-new layout - Script Codes CSS Codes
h2{ font: 14px Arial, sans-serif; color:#fff; padding: 10px; text-align: center;
}
html, body{ height: 100%;
}
*{ margin: 0; padding: 0; list-style-type:none;
}
#wrapper{ height: 100%; position: relative; width: 100%; overflow: hidden;
}
#menuContainer{ width: 20%; height: 100%; position:absolute; top: 0; left: 0; background: #222;
}
#menuContainer li{ border-bottom: 1px solid #000; border-top: 1px solid #333; cursor: pointer; padding: 10px 5px; color: #BBB; background: #1a1a1a; font: 12px Arial, sans-serif;
}
#menuContainer li:hover{ background: #111; color: #CCC;
}
#layoutContainer{ width: 80%; height: 100%; position:absolute; top: 0; left: 20%; box-shadow: -3px 0px 9px 0px rgba( 0, 0, 0, 0.4 );
}
GLayout-new layout - Script Codes JS Codes
var newItem = { type: 'component', componentName: 'template', id: 'channelLibrary', componentState: { text: 'templates/mvision/channelLibrary.html' }, width: 50 };
var config = { settings: { hasHeaders: true, selectionEnabled: true }, dimensions: {headerHeight: 0, dragProxyWidth: 300, dragProxyHeight:200}, content: [{ type: 'column', content: [{ type: 'row', content: [{ type: 'column', width: 70, id: 'tag_playlist_container_up', content: [{ type: 'row', id: 'tag_playlist_container', content: [{ type: 'component', id: 'tagLibrary', componentName: 'template', width: 50, height:30, componentState: { text: 'templates/mvision/tagLibrary.html' } }, { type: 'component', componentName: 'template', id: 'playlistLibrary', componentState: { text: 'templates/mvision/playlistLibrary.html' }, width: 50 }] },{ type: 'row', content: [{ type: 'component', componentName: 'template', id: 'mediaLibrary', componentState: { text: 'templates/mvision/mediaLibrary.html' }, width: 60 }, { type: 'component', componentName: 'template', id: 'playlistEditor', componentState: { text: 'templates/mvision/playlistEditor.html' }, width: 40 }] }] }, { type: 'row', content: [{ type: 'component', componentName: 'template', id: 'mediaProperties', componentState: { text: 'templates/mvision/mediaProperties.html' } }] }] }, { type: 'row', height: 20, content: [{ type: 'component', componentName: 'template', id: 'channelLibrary', componentState: { text: 'templates/mvision/channelLibrary.html' }, width: 20 }, { type: 'component', componentName: 'template', id: 'channelEditor', componentState: { text: 'templates/mvision/channelEditor.html' }, width: 80 }] }] }] };
var myLayout = new window.GoldenLayout( config, $('#layoutContainer') );
myLayout.registerComponent( 'template', function( container, state ){ container.getElement().html( '<h2>' + state.text + '</h2>');
});
myLayout.init();
var addMenuItem = function( title, text ) { var element = $( '<li>' + text + '</li>' ); $( '#menuContainer' ).append( element ); var newItemConfig = { title: title, type: 'component', componentName: 'template', componentState: { text: text } }; element.click(function(){ myLayout.root.contentItems[0].addChild( newItemConfig, 1 ); });
};
addMenuItem( 'Add me!', 'You\'ve added me!' );
addMenuItem( 'Me too!', 'You\'ve added me too!' );
var tag;
var p;
function doHide() { var tmp = myLayout.root.getItemsById('channelLibrary')[0]; tmp.close(); tag = tmp;
}
function doShow() { var x = 1;
var drop = myLayout.root.contentItems[0].contentItems[1]; var y = myLayout.createContentItem(newItem); drop._dropSegment = 'left'; drop._$onDrop(y);
}
Developer | Alexandru Puiu |
Username | apuiu |
Uploaded | November 27, 2022 |
Rating | 3 |
Size | 3,070 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Insert into array | 1,497 Kb |
Parse date | 1,480 Kb |
GLayout - hide | 3,103 Kb |
Dynamic NgBind | 1,848 Kb |
GLayout | 3,064 Kb |
Phosphor | 66,943 Kb |
Move array elements2 | 2,016 Kb |
A Pen by Alexandru Puiu | 1,505 Kb |
Calculate fday of week | 1,403 Kb |
GLayout1 | 3,018 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Flip test | Madhes | 1,635 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Simple jQuery Slider | Jurbank | 2,874 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
Price table | Serluk | 5,928 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
Bubble animation | Ftabor | 6,565 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!