Sliding Panels

Similar to Skuid modals, sliding panels are hidden containers for Skuid components that can appear from any of the four sides of the screen. They are useful for optional information, hidden menus, or sidebars on mobile. You can integrate them into your page using the Action Framework.

Note

Sliding panels will not function in pages with the Salesforce® header or Salesforce sidebar enabled. If you are working within Skuid on Salesforce, you must disable both of them to use sliding panels within your page.

Using Sliding Panels

Sliding panels are generally used to give additional/optional information related to the action the end user is currently taking. They can be added to a Skuid page through an Action Framework action such as Open Sliding Panel.

After adding the action, click the Configure Panel button in the properties pane to begin configuring the sliding panel for that particular action.

Sliding panels can be set everywhere the Action Framework is available, and every Toggle Sliding Panel or Open Sliding Panel action will create a unique sliding panel for that action. This means you can have multiple sliding panels appear at one time, all of which are uniquely configured for whatever action activates them.

Note

The Close Sliding Panels action will close all sliding panels, regardless of their origin.

Creating a sliding panel: a use case

One of the most common use cases for a sliding panel is a mobile-friendly menu within a navigation component. Let’s create one within a Skuid page to illustrate sliding panel concepts and properties.

  1. Navigate to an existing Skuid page or create a new one.

  2. Drag a navigation component into the canvas.

  3. Click Add Nav Item, then click the newly-created Navigation Item.

  4. Set its fields:

    • Label: Menu
    • Icon: Select an appropriate icon.
  5. Click the Actions tab.

  6. Click Add action.

  7. Set the Action type to Open Sliding Panel.

  8. Set Behavior to Open.

  9. Click Configure panel.

Much like configuring Skuid modals, you will now see a Skuid window containing a separate canvas. Here you may configure the properties for your sliding panel, as well as drag and drop components into its canvas.

For this example:

  1. Set your sliding panel properties:
    • Origin: Left
    • Close when User Clicks Outside of Panel: Checked
    • Width: 200px
  2. Drag a Header component into the sliding panel canvas.
  3. Set the Header component’s fields:
    • Title: Menu
    • Subtitle: Mobile
  4. Close the Sliding Panel configuration window.
  5. Click Save.
  6. Click Preview.

While within the Skuid page, click the navigation item you’ve configured above to open the sliding panel you’ve configured. Click anywhere on the page to close the panel.

This is a simple example, but you can use this model as a basis for a variety of use cases:

  • Listing a full set of navigation items within a mobile-friendly menu. (Bonus points if it’s within a master page’s header!)
  • Adding related information to a record page using merge syntax.
  • Placing advanced page operations within an “experts-only” panel.

Experiment with different sliding panel properties and components to create useful additions to your Skuid apps.

Properties

(Just need to look up a property? Try going directly to the Property Library.)

Component properties