ensnmz
unread,Dec 31, 2011, 10:08:56 AM12/31/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jLayout
Hello there,
I have three components, which are WEST, NORTH and CENTER for the site
content.
What I want is a functionality for my already logged users, to give
them ability to set a default state for WEST component. So users that
don't want to see a component on the left will close it. At this part,
I need to modify my javascript code (that creates the layout) to help
the plugin show the west panel or not, during the page loading.
How to set WEST components visibility? This is the code of my layout
design:
var container = $('#container');
function doLayout() { container.layout({resize: false}); }
doLayout();
$(window).resize(doLayout);
HTML:
<div class="north">HERE IS NORTH</div>
<div class="west">HERE IS WEST</div>
<div class="center">HERE IS CENTER</div>