Templates
Templates are predesigned pages that can be dropped to another page to expedite the development process.
For example, if you have a certain type of grid that is used on different pages, it could be beneficial to have it as a template so that you can:
- Save time in replicating it
- Save time in changing it
- Standardize the development process
Template Creation
- Go to Settings – Layout – Templates
- Click on the + Create New button
- Open the template using the 🖉:
- Change the name of template "New Template" to a name of your liking
- Set the data source on renamed element
- Insert text blocks or other elements that can store the data
- Data bind the variables into the elements
Editing Templates
- From the creation page select template
- Click on the edit button (🖉)
Inserting Into Page
- Go to page you want to insert into
- In the base select the data source, also select overflow scroll and position absolute, since you might want to make the page scrollable
- Insert a repeat element inside the base
- You can insert it into a another layout element if its not a list of data objects
- From the toolbox pick select templates
- Look up template name
- Drag and drop template into repeat element, make sure to select load by reference since you want to load it using the default options not new ones
Template Settings
Load by reference allows mirroring of changes to and from the original template page.