Create Custom Layout
Its super easy to create your own custom layout
Setting up your layout component
import {
SIDEBAR_ANCHOR_POSITIONS,
SIDEBAR_SCROLL_TYPES,
SIDEBAR_STYLES,
SIDEBAR_VARIANTS,
SIDEBAR_VIEWS
} from "@jumbo/utils/constants/layout";
const layoutConfig = {
sidebar: {
open: true, //if true then sidebar will be expanded otherwise collapsed
hide: false, //if hide is true then sidebar will not render at all
variant: SIDEBAR_VARIANTS.PERSISTENT, //one of PERSISTENT, TEMPORARY OR PERMANENT
style: SIDEBAR_STYLES.FULL_HEIGHT, //One of FULL_HEIGHT/CLIPPED_UNDER_HEADER
view: SIDEBAR_VIEWS.FULL, //One of FULL/MINI
scrollType: SIDEBAR_SCROLL_TYPES.FIXED, //One of FIXED/DEFAULT
anchor: SIDEBAR_ANCHOR_POSITIONS.LEFT, //One of LEFT/RIGHT/TOP/BOTTOM
},
header: {
hide: false, //if true then header will not render at all
fixed: true, //if true then header will remain fixed on scroll
},
footer: {
hide: false, //if true then footer will not render at all
},
};Last updated