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 44 Next »

What is a palette?

A palette is part of a Template Package, it can also be part of an application, and it contains ready-made components that you can drag onto a screen to add content such as data entry forms or maps. Our Palettes have been designed to create responsive screens, meaning that your application will adapt to the device you are viewing it on.


What do the items in a palette look like?

See About Template Packages for an overview of the styling or to see the examples in an application for:

  • Theme 2.1
    • open the Theme 2.1 app and select one of the options to see an example.
  • Theme 2
    • Go to the repository → Packages → Theme 2.
    • Open the T2 - Example Dashboard
    • Click the Generate Data button if there is not data displayed.

Using a Palette

Palettes are divided into logical groups, such as complete screens or tiles (which make up sections on a screen. 

Adding Screen Content

  1. Content is added by dragging palette items onto a screen and dropping them.
  2. Where appropriate PhixFlow highlights the area onto which it is recommended the selected item be dropped, as shown below. This is known as a Preferred Parent.


Screen Structure

Before we look in more detail at using a a palette, it helps to understand structure of a typical screen, this is illustrated below. Click on the image to enlarge it.


You can download and print this image: PDF Quick Reference Sheet.

How do I Rearrange Components?

Click on any item on your screen, and it will be highlighted in the layouts section on the left. To move components within the Layouts, drag it to the desired position.

  1. Move it next to: dragging items onto another item will place it next to it.
  2. Move an item inside another: Hold shift + drag the item onto the item you would like to place it in.


Changing Direction

Typically, components designed to house other components, such as a Tiles, will use CSS Flex to handle the layout of their content. This means content is set out in rows or columns. Newer Palettes items will contain an arrow in their icon to indicate the direction of content. You can change the direction using the layout properties.

To do this:

  1. Select the item on the screen.
  2. In the properties window that opens, click on the Styles tab.
  3. Scroll down to the Direction settings:
    1.  
  4. Set the desired properties:
    1. Direction: row or column layout, defined as the main axis.
    2. Wrap: Whether or not the content should wrap around to the next line.
    3. Justify: the alignment along the main axis. For example, Flex Start will align a row to the left. 
    4. Align: the alignment perpendicular to the main axis. For example, Center will align items between the top and bottom of a row, or the for a column it aligns them between the left and right hand sides. 

See Component Properties for more details


How do I Add Tiles?

Tiles need to sit within the Tile Container, this ensures they layout responsively and looks the way we intended. To add a tile simply drag it onto any complete screen and drop it on the highlighted tile container.

If you have created a screen from scratch make sure you add a tile container before adding tiles.  

Adding content within a Tile

To add a component into a tile use SHIFT+drag and then drop the item in the desired location.

  • No labels