Defining the Panel Layout
Now, we need to define the layout of the top (panelA) and bottom (panelB) panels of this splitPane.
Steps:
- Copy or enter the text from the right into the file
You may recall that some of the variables here have the same names as the XML tags we defined when defining a splitPanel from a menu item in part '2. Menus - Basic'.
Panel A:
The variables here are:
- 'type'
- specify what type of container we want, like we did in previous steps
- 'name' of the panel
- 'overflow'
- defines what happens when the content doesn't fit in the container
- the options are 'visible,' 'hidden,' 'scroll,' 'auto,' and 'inherit'
- 'ContentType'
- the options are 'LINK,' 'URL,' or 'RAW' (see 2. Menus - Basic : Loading content)
- 'PrimaryContainer'
- set this to 'true' if this is the primary container in your split pane
- 'data::type'
- defines how to get the data to load like in the menu files
- the options are 'html,' 'action' and 'other' (see 2. Menus - Basic : Loading content)
- 'data::data::parameters'
- defines the parameters of the action, like in the menu files (see 2. Menus - Basic : Loading content)
Panel B:
Here, we give it the name 'detail' to indicate that details of the top panel (A) will be shown in the bottom panel (B).