Zum Hauptinhalt gehen

Way to Maximize & Minimize Panel Layout Programatically

Kommentare

5 Kommentare

  • Offizieller Kommentar
    Cam Barnard
    [
       {
           "name": "ui.set-visual-state",
           "arguments": {
               "visualState": "maximized",
               "id": "panel-82e5d094"
           }
       }
    ]


    [
     {
       "name": "ui.set-visual-state",
       "arguments": {
         "visualState": "minimized",
         "id": "panel-82e5d094"
       }
     }
    ]

    ... where your id matches your particular panel. 
     
  • Zack Robison

    I think this is what the ui.set-visual-state command is for, but I haven't used it much and I vaguely recall struggling with it.

    0
  • Reno Sun

    Wow Zack Robison and Cam Barnard,

    Thanks a lot for your answer to my questions! I will test it out soon :)

    0
  • Amanda Frech

    Some tips for the ui.set-visual-state command:

    --In Web Designer, you can use the gear icon in the panel component configuration to find its ID:

     

    --The options for visualState seem to be "minimized", "maximized", "normal", and "detached"

    2
  • Niels Willemot

    does it only works with panels? or also with toolbars?

    For example to minimalize this one..

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.