PhixFlow Help
2. Styling Applications
Manage the styling of your forms to give your application a more aesthetically pleasing style. To recap the steps in the video:
Hide the UID
- Go into the configuration form for the grid attribute
UID
. - In Grid Settings, tick Hidden.
- Go into the configuration form for the field
UID
. - In Style Settings tick Hidden.
Create an Area to Hold Action Buttons
- Right-click on the lower pane and click on Open Palette → Basic Components.
- Drag an Area onto the form. If you can't see the area, right-click and select Find in Explorer.
- For the Area, set:
- Name:
SimpleButtonHolder
- Background Colour:
#9b9b9b
- Position Settings
- Width:
100%
- Height:
45px
- Bottom:
0px
- Width:
- Name:
- Use Find in Explorer to find the action buttons.
- Hold the Shift key and drag the buttons onto the
SimpleButtonHolder
area. This will add the area into theSimpleButtonHolder
. - Go into the configuration form for the area
SimpleButtonHolder
and set:- Direction: Row Wrap
Sets the area to a row layout. - Justify: Flex End
Aligns the content to the right edge of the row. - Align: Center
Sets the vertical alignment of the row to the center.
- Direction: Row Wrap
Save your changes to see the results.
Update the Style for the Delete Button
- Go into the configuration form for the button
Delete
. - Open the section Style Settings and set:
- Border Style: Solid
- Border Width: 3px
- Border Colour:
red
- Background Colour:
yellow
- Text Colour:
Black
Save your changes, close and reopen the dashboard to see the results.
Update the Style for all Buttons
- Go into the configuration form for a button — you can use any button.
- Open the section Shared Styles.
- Open the shared style Button Style and set:
- Border Style: Solid
- Border Width:
3px
- Border Colour: any colour
- Background Colour: any colour
- Text Colour:
black
Save your changes to see the results. All buttons will update to reflect the new style settings, other than the Delete
button. The specific styling on the Delete
button overrides the styling applied through the shared style Button Style.
Clear Styles
- Clear your style settings on the
Delete
button. - Save your changes. The
Delete
button should now look the same as the other buttons. - Clear your style settings in the shared style
Button Style
. - You should see the styling for all buttons return to the default.
If you do not see this change, you may need to close and reopen the dashboard.
Create a CSS Property for a Button
- Open the configuration form for the button
Delete
. - Go to the section CSS Properties.
- Press the + button to add a CSS style and set:
- CSS Tag: background-color
- Value: #bdbdbd
- State: Mouse Over
Save your changes, close the dashboard and reopen it to review the result.
To access a colour picker within PhixFlow:
- Open the configuration form for an object on the edit form. You can use any object for this, for example a button, button label, form, field and so on.
- Use the colour picker to choose a colour you like. Copy and paste the # value into the Value field of the CSS property.
- Close the other configuration editor, making sure you do not save your changes.
Create a Shared Style
- Open the configuration form for the shared style Button Style.
- Drag the CSS property you created for the
Delete
- Click the + button to add another style and set:
- CSS Tag:
padding-right
- Value:
5px
- CSS Tag:
Save your changes. You should now see the mouse-over colour applied to all buttons.
Create a Specific Style Override
- Open the configuration form for the button
Delete
. - Go to the section CSS Properties.
- Press the + button to add a CSS style and set:
- CSS Tag:
background-colo
r - Value:
red
- CSS Tag:
Save your changes. You should now see the red mouse-over colour applied to the Delete
button.
Sort Order
- Open the configuration form for the button
Add
. - Set Order to
3
. - Open the configuration form for the button
Update
. - Set Order to
2
. - Open the configuration form for the button
Delete
. - Set Order to
1
.
Save your changes, close the dashboard and reopen it to review the result.
Next video: 3. Designing Forms and Templates
Please let us know if we could improve this page feedback@phixflow.com