Page structure

Each page in FlexDash follows a consistent structure designed for flexibility and responsiveness. The main layout is composed of two primary areas (Side A and Side B), arranged using a Flex widget that adapts to different devices:

  • Web/Desktop: Content is displayed in two columns (horizontal).

  • Mobile: Content is stacked in one column (vertical).


Main Layout

  • Row Container: The root of the page is a row containing:

    • Sidebar (visible on larger screens).

    • Main Column (scrollable content of the page).

  • Drawer: On smaller screens, the sidebar is replaced by a drawer. For more details, see the Sidebar documentation.


Main Column

Inside the main column:

  1. Sticky Header

    • This widget keeps the template header fixed at the top of the screen.

    • Inside the StickyHeaderContent, you can place any content you want directly below the header.

  2. MaxWidthContainer

    • Ensures the page content does not expand excessively on large screens.

    • Keeps the layout clean and centered for a professional appearance.

  3. Flex Layout (Side A and Side B)

    • Provides the main two-part layout of the page.

    • Web/Desktop: Both sides are displayed horizontally.

    • Mobile: Both sides are stacked vertically.

    • Inside each side, you can place any widgets or structures required.


Blank Page Template

FlexDash also includes a Blank Page that you can use as a clean starting point. This is often a better choice than modifying the main template pages directly, since it allows you to build layouts from scratch using existing components without losing the option to reset the original template later.


triangle-exclamation

Last updated