New Layout
Transition to New Layout Framework
Example New Layout Code
Key Features of the New Layout
{{PaletteThemeColor}}
and {{PaletteHeaderTextColor}}
are used for theming, allowing for easy customization and updates.HTML Template Variables Explained
1.
{{IsoLang}}
:en
for English, fr
for French).<html lang="{{IsoLang}}">
2.
{{RequiredHeaders}}
:<head>
tag.3.
{{Assets}}
:<link rel="stylesheet" href="{{Assets}}/css/simplebar.min.css?version={{Version}}">
4.
{{Version}}
:simplebar.min.css?version={{Version}}
.5.
{{Path}}
:<script type="text/javascript" src="{{Path}}/templatedata.js?version={{Version}}"></script>
6.
{{Root}}
:<link rel="stylesheet" href="{{Root}}/Custom.css">
7.
{{pagedata}}
:<script>
tag.8.
{{ComponentTemplates}}
:<body>
tag.9.
{{GlobalData}}
:<body>
tag.10.
{{palette}}
:Example of Vue.js Data and Methods
globalStores
: An object to store global data for the app.headerData
: Array to hold header components.footer
: Array to hold footer components.selComp
: Variable to track the selected component.customCssUrl
: URL for the custom CSS file.Vue.js Methods for Handling Data
addStore(id, data)
: Adds data to the globalStores
object.getStore(id)
: Retrieves data from globalStores
by ID.setPage(page)
: Sets the current page.setCssFile(url)
: Dynamically sets the URL for the custom CSS file.setTemplate(template)
: Sets header and footer data based on the provided template and applies color settings.setSelectedComponent(component)
: Sets the selected component.setColors(palette)
: Updates CSS custom properties with colors from the provided palette.