Create Custom Layout
Its super easy to create your own custom layout
Jumbo offers pre-built layouts and in most of the cases with few configuration changes these layouts would be enough to implement the desired layout for your app. But sometimes you might feel a requirement to implement a custom layout for few group of the pages or for the complete app.
Following are steps you can take to create your own custom layout. For example, consider that you need a new layout Horizontal Default:
Setting up your layout component
In this step, you need to create your own layout folder "horizontal-default" inside the src/app/layouts/
Inside this newly created src/app/layouts/horizontal-default
folder, create two files:
layoutConfig.js (configuration value in object format for the layout)
HorizontalLayout.js (Layout Component for new custom layout)
Following is the detailed layoutConfig.js file which explains how you can use the layoutConfig object to configure your layout:
Following is a sample HorizontalDefault.js you can consider as a reference to create your own component:
As mentioned in HorizontalDefault.js the layoutConfig.js is being used to configure the layout structure while section contents are being passed through the <JumboLayout /> component.
Last updated