Has a 'flow collapse' button


Specify if this Panel has a button that collapses or expands (i.e. 'docks' or 'hides') all Panels that are 'before' this Panel in the parent PanelLayout. The meaning of 'before' depends on the parent PanelLayout's 'flow direction'. For example, if the flow direction is LTR, then 'before' means Panels to the left of this Panel. Note that you only need to specify a single button which acts as a toggle, either collapsing or expanding Panels.

The "Has a 'flow collapse' button" property


For a video explanation of 'flow collapse' buttons watch this video. Below is an example of two expanded 'flow collapse' buttons, one in Panel 2 and one in Panel 3. By default each button is denoted by two blue angle brackets '<<' but could be any HTML or icon. In this case Panel 1 does not require a flow collapse button. Because it is the first Panel in the flow, collapsing Panel 2 will hide Panel 1.

Two 'Flow collapse' buttons expanded

When a 'flow collapse' button is clicked on, the panel before it in the 'flow' is hidden or docked. Here Panel 2's 'flow collapse' button has been clicked.

The same component with the 'flow collapse' button in Panel 2 collapsed.

Adding a Flow Collapse Button 

In order to add a flow collapse button to a UX, it is first necessary to define a Panel Layout containing at least two Panels. The button to use for the flow collapse also needs defined inside a PanelHeader inside a Panel.

  1. In the UX Builder's UX Controls page check the 'Mobile' option in the toolbar.

  2. Open the Panels menu. Choose the [Panel Layout] option to add a panel layout to the control.

  3. Highlight the Panel Layout. In the Panels menu click on [Panel Card] and click 'Insert After'. The Panel Card should appear inside the Panel Layout.

  4. Highlight [Panel Card End: PANELCARD_1] and click on [Panel Card] again in the Panels menu to add PANELCARD_2 to the component.

  5. Add a third [Panel Card] underneath PANELCARD_2.

  6. Highlight PANELCARD_1. Open the Containers menu and click on [Container].

  7. From the Container Type list select the 'PanelHeader' option. Click 'Insert After'.

  8. Highlight the Panel Header. Open the 'Other Controls' menu and add a 'Spacer' control to the Panel Header. Highlight the Spacer. In the Spacer Properties on the right set the Height to 32px.

  9. Highlight the PanelHeader End. Click on [Static Text] option to add some static text underneath the panel header.

  10. Highlight the Static Text control. In the Static Text Properties set the 'Static text' proeprty to be 'Panel 1'.

  11. Highlight PANELCARD_2. Open the Containers menu. Click on the [Container] option and again select 'PanelHeader' from the Container Type list, then click 'Insert After'.

  12. Highlight PANELHEADER_2. Open the Other Controls menu and click on [Button] to add a button to PANELHEADER_2.

  13. Highlight [PanelHeader End:PANELHEADER_2] and from the Other Controls menu click on the [Static Text] option.

  14. Highlight the Static Text control. In the 'Static text' property, in the properties list, type 'Panel 2'.

  15. Highlight PANELCARD_3 and add a Panel Header to this panel.

  16. Place a [Button control] inside PANELHEADER_3.

  17. Add another [Static Text] Control underneath PANELHEADER_3, give this control a 'Static text' property of 'Panel 3'.

  18. Highlight PANELCARD_2.

  19. In the properties list in the 'Flow Collapse Button' section check the "Has a 'flow collapse' button" checkbox.

  20. From the 'Button id' property dropdown select BUTTON_1.

  21. Highlight PANELCARD_3

  22. Check the 'Has a 'flow collapse' button property

  23. From the 'Button id' property dropdown select BUTTON_2.

  24. Run the component in Live Preview.

  25. Click on the 'flow collapse' button to collapse one of the panels.