Create a Container
You can organize Style functionality in a way that fits your individual needs by creating containers and moving Style controls (such as panels, tabs, buttons, etc.) to those containers.
|
- Select the Plugin and the Profile you want to customize. See Select a Plugin to Customize for more information.
In addition to the Controls and Layout Strings panels, there is a Layout panel added to the top of the page. The Layout panel is the developer view of the Controls panel. It allows you to view all the controls at the same time and how it will be laid out on the page.
You can use the Controls or Layout panels to insert, move, or remove containers, tabs, panels, or accordions.
- From the Controls or Layout panels, select the control you want to add a container after or in (such as a container, panel, tab set, etc.).
- In the Control Details panel, click Insert Container.
When you click Insert Container, a container is added after the selected control.
Containers can include controls (such as panels, tabs, buttons, etc.) within them.
- Rename the container's Control Id in the Control Details panel to help you easily differentiate between multiple containers and what they include. Such as Container1, ContainerLeft, ContainerLocation.
- Enter a width for the container.
The Widths field allows you to set breakpoints for devices that users may use, such as phones, tablets (portrait or landscape), desktop, or 4k screens. Breakpoints use a scale from 0 to 12 because web pages commonly have 12 column grids. Therefore, the scale specifies how many grids to take up on a web page and divides it by 12. For example, 9 divided by 12 is 75% of a screen's width.
There are five breakpoint values separated by commas in the width field that determine the width (breakpoint) of the screen for phones, portrait tablet, landscape tablet, desktop, or 4k screens.
NOTE: When you enter the widths, keep in mind that 0 uses the value of the previous breakpoint (or defaults to using the full screen if it is the first breakpoint value) and 12 means full screen; anything between 0 and 12 will be divided by 12 and use that amount of the screen for that device.
If you enter 12, 6, 12, 0, 6 for the value in the Widths field, it will affect the devices in the following way:
|
- Enter a Label for the container, if you want. This is what the users viewing the profile will see.
- Select a control and move it to the container. See Move a Control or Panel for more information.
NOTE: A container will be grayed out and not visible until a control is added to it.
- Move more controls as needed to the container.
- Select the container and click Remove to remove it.
- Click Save Profile in the Profile panel.