Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
This page is for application designers who want to design re-usable components and add them to palettes.
Overview
If you have a specific component that you want to reuse on multiple screens, you can make a Layout Template Template, then add it to a new or existing palette.
Making a
LayoutTemplate
- On a screen, add components from a palette to create a desired layout.
- Set all the style options you require. It is recommended that styling is applied using shared stylesWe recommend that you use shared styles when designing a layout that you want to add to a palette.
- Right-click the Layout outermost component for the layout and select
.Insert excerpt _repository_find _repository_find nopanel true - In the repository, right-click the component name.
- From the context menu, select Copy as a Template.
- PhixFlow opens a new property tabpanel. This is a copy of the original component, with the Advanced → Template property ticked. It is saved in the Layout Template section of the repository.
- Edit the name to reflect that this component is now a layout template.We
- recommend that you To add a layout template to a Palette. See How to Create a Palette.In palette, in the repository open the desired palette. Drag the tab into the workspace to show the tab for the palette and Layout Template template side-by-side.
- Drag the layout template into the desired group of the palette.
- The layout template is now ready as a reusable item that can be dragged from your palette to a screen.
You can add your own components to the palettes provided by Phixflow. Alternatively, you can keep your custom components on your own palettes; see How to Create a Palette.
Managing Layout Templates
To successfully move a palette to a different PhixFlow instance, you must include the layout template all its templates and styles in the export. Consider adding your styles, layout templates and associated palette to a package, to ensure they are all included in an export; see Package for how to add items to a package.
To perform the export click the Administration menu options Export Full Configuration or Open Export Pane to include the layout templates and styles in your package; see Export Configuration and Import Configuration.