Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

This page is for application designers who want to design re-usable components and add them to palettes.

Overview

The easiest way to design a screen for an application is to:

  • create a screen; see Screen
  • drag in pre-designed components from the palette. For information about the palettes that can be installed with PhixFlow, see pages in the Using Palettes and Themes topic.

Components in a palette have been designed to have consistent formats; see pages in the  Styles and Formats topic.

If you have a specific component that you want to reuse on multiple screens, you can make a template of the component, then add it to a new or existing palette.

For Components and Templates the repository does not have a context menu option to add a new one. 

Making a Template

  1. Design your component and set all the style options you require.
  2. In the screen canvas, right-click the component and select  Find in Repository.
  3. In the repository, right-click the component name.
  4. From the context menu, select Copy as a Template.
  5. PhixFlow opens a new property tab. This is a copy of the original component, with the Advanced → Template property ticked. It is saved in the Template section of the repository. 
  6. Edit the name to reflect that this component is now a template.

We recommend that you add a template to a Palette:

  1. Open the repository and palette. Drag one of the tabs into the workspace to show the tabs side-by-side.
  2. Drag the template from the repository into the palette.

Reusing Components in Screens

To use a template, simply drag it into the screen:

  • either from the repository Template 
  • or from the palette.

When you drag in the template, PhixFlow prompts you to add a name. PhixFlow saves the copy in your application as a component on the screen, using the new name. This means that changing a template

  • does not change the components that have already been copied from it. 
  • new copies will have the change.

When you set up a template, you might want the option of changing the appearance of components that have been copied from a template. To do this, set up a shared style.

  1. Configure the formatting in a style.
  2. Add the style to the template's Shared Styles; see Style and Shared Styles and Style Order.

Managing Templates 

When you use a style or template in your screen, they become part of your application. To successfully move an application to a different PhixFlow instance, you must include the template and styles in the export. Consider adding your application, and any items it uses, such as templates and styles, to a package, to ensure they are all included in an export; see Package.

Use the Administration menu options Export Full Configuration or Open Export Pane to include the templates and styles in your package; see Export Configuration  and Import Configuration.


  • No labels