Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
What is a Palette?
A palette contains ready-made components that you can drag onto a screen canvas to add content. Palette components can be simple, such as a data field. They can also be multi-component layouts that provide sections of a screen with a header, data display and action buttons. Layouts can even be a complete screen. Layouts and components can display data, enable application users to enter data, or can display information from external sites, such as a Google map.
You can create your own layouts and add them to palettes. However, we recommend you start with the palettes designed by the PhixFlow team. These layouts are designed to create responsive screens that will rearrange to suit the size and aspect ratio of the device on which the application is running.
Excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
The palettes available to your application are:
To use a palette, drag layouts and components onto the screen canvas; see Using a Palette and Adding Screen Content. If you close the palette tab, in the screen canvas toolbar, click
|
What do the items in a palette look like?
See Understanding Template Packages for For an overview of the styling or to see the examples in an application for:
Theme 2.1opengeneral style of different palettes, see Understanding Template Packages. To see the final results of using the Theme 2.1 palette, in the repository, load the Theme 2.1
app and select one of the options to see an exampleexample application.
Palettes are divided into logical groups, such as complete screens or tiles (which make up sections on a screen).
Adding Screen Content
- Content is added by dragging palette items onto a screen and dropping them.
- 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.
Screens are design to contain information in tiles that respond to size of the screen you are working on, we call this responsive design and you can find out more about this topic as well as editing the positioning and size of objects in sections for different screen components. Many are prebuilt to make it easy to add:
- complete screens
- layouts and tiles, in which several components are combined to make sections of a screen
- individual components, such as data fields.
Understanding the Layer Structure of a Screen
StructureBefore we look in more detail at using a a palette, it helps to understand structure that the components of a typical screen , this is illustrated below. are grouped into containers which form layers, as shown in the following image.
- Click on the image to enlarge it.
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.
- Move it next to: dragging items onto another item will place it next to it.
- Move an item inside another: Hold shift + drag the item onto the item you would like to place it in.
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.
- Download for printing: PDF Quick Reference Sheet.
Adding Screen Content
To add content to a screen:
- Drag components from the palette and drop them onto the canvas.
- If PhixFlow recognises a suitable container for the component, it highlights the container, as shown below. This is known as a preferred parent container; see Component Categories and Preferred Parents.
Moving Components
It is not always easy to see how components are grouped into containers when working on the screen canvas. We recommend that to move any component or layout, you use the
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
On the screen canvas, click the component you want to move
PhixFlow highlights the component in the layout panel. This means you can easily decide if you need to move just the component, or if you need to move its containe. You can also see where in the layer you need to move it to ensure it has the correct parent container.
In the layouts panel, drag the selected component to its new position in the list.
If you want to move components within the screen canvas, PhixFlow needs to know whether the drop location should be
- a sibling component, that the dragged component goes next to.
In this case, simply drag and drop a component. - the parent container, that the dragged component goes into.
In this case, press the Shift key as you drag and drop the component
Using Tiles
Anchor | ||||
---|---|---|---|---|
|
The Theme 2.1 palette includes sections for complete screens and for tiles. The complete screens have tile containers, in which the responsive design settings are configured. When you drag a tile from the palette onto the screen canvas, PhixFlow highlights suitable tile containers where you can drop the tile.
If you create your own screen, to use tiles from the palette, you must first provide a suitable tile container by:
- either dragging in a tile container from the palette
- or adding an area component and setting the responsive design options; see Using Size and Position for Responsive Design.
Adding Components to a Tile
Anchor | ||||
---|---|---|---|---|
|
To add a component into a tile that you have added to your screen, Shift-drag the component from the palette and drop it into the tile.
Changing a Tile's Layout Direction
Anchor | ||||
---|---|---|---|---|
|
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. Palettes items icons 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:
Tile containers and tiles use the CSS Flex option to specify the layout of contained components as being in either columns or rows. In the palette, the icon for a tile has an arrow to show which direction its contained components will flow.
To change the flow direction:
- Click on a component on screen to find it in the layers panel.
- If necessary, identify the container for the component and its siblings.
- Right-click the name of the parent and click
.Insert excerpt _edit _edit nopanel true - PhixFlow opens the component properties. Click the
Insert excerpt _property_tabs _property_tabs name style nopanel true - Scroll down to the Direction section:
- Set:
- Direction: either Row or Column. This provides the main axis along which components flow.
- Wrap: whether or not the content should Wrap around to the next line.
- Justify:
- how components align along the main axis. For example, Flex Start
- aligns a row to the left.
- Align:
- how components align perpendicular to the main axis. For example, Center
-
- for a row: aligns components between the top and bottom of a row
- for a column
- : aligns
- components between the left and right
- of the column.
See also:
Editing the Palette
ItemsWarning |
---|
Editing the a styles of any item in the palette will impact affects all items using this style!that use the style. This includes items already added to a screen both in your application and those used by others in your organisation. |
There are two ways to edit the palette the items,
Editing the Whole Palette: you may wish to change the style of all items in a palette, for example to add a company logo or change the colour scheme to that of your company. |
|
Editing palette items in isolation
: IfIf you want to edit a palette item so that it does not change existing items the best method to do this is create a style to override any existing style.
- Select the item in a palette, right click on it and select edit.
- Click on the Styles tab
- In the shared styles section, click the add button
- Complete the shared style as required
- Save all your changes.
- Here is a worked example:
Iframe src https://www.youtube.com/embed/X8A_8l4rSMM?rel=0 width 560px height 315px
To change an aspect of the style of all components in a
Palettesee Adding to a Palette.
Creating a New Palette
see palette
for example to add a company logo or change the colour scheme to that of your company. To perform these changes:
- Select the item in a palette, right click on it and select edit.
- To edit an item held within another item, such as editing a header on a complete screen,
- right click on the outer item and select find in repository.
- drill down to find the item and double click to open its properties.
- Click on the styles tab.
- Edit the styles and save your changes.
See also