0

i am using ui-layout and i like to save the state of the panes. So when the users reloads the site it should open the panes as he left it before. I found the option stateManagement and set it to true. But it wont work. If i resize the west-pane and reload the page the pane will load as it was before.

This is my code:

$(document).ready(function () {
    mainLayout = $('body').layout({ 
        name: "main",
        applyDefaultStyles: true,
        
        north__minSize: 59,
        north__maxSize: 89,
        north__closable:false,
        north__resizable:false,
        north__spacing_open:1,
        

        west__closable:true,
        west__resizable:true,
        west__spacing_open:3, 
        west__spacing_closed:5,
        
        east__minSize:0,
        east__maxSize:200,
        east__size:0,
        east__closable:true,
        east__resizable:true,
        east__spacing_open:3, 
        east__spacing_closed:0,
        east__initClosed:true, 
        east__togglerAlign_open: "top",
        east__togglerLength_open:0,
        
        south__size:45,
        south__closable:false,
        south__resizable:false,
        
        stateManagement__enabled:true
});

Did i need to made more settings like cookie name?

Sorry for my bad english!

Mike
  • 693
  • 1
  • 13
  • 31

0 Answers0