Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Overview
Card Containers organise and display information, such as text, images and buttons, in a visually appealing and structured way. They work in a similar way to grids but offer greater visual flexibility.
Card containers are backed by a table and this is used to display the data using data backed components, such as form fields and dynamic text..
How-to add a Card Container to a Screen
In this example, we will add a card container that will display employee contact information.
In the
To prepare your screen we recommend adding a tile to hold the card container.
- In the Serene Grey palette, expand the Card Containers section
- Drag the ContactsBasic card container onto your screen in the desired location and give it a
Name
- To set where the card container will get its information from, it must be backed by a
, this then allows theInsert excerpt _tables _tables nopanel true
from the table to be displayedInsert excerpt _attributes _attributes nopanel true - Click on the card container on the canvas to open its open its
on the rightInsert excerpt _property_tabs _property_tabs nopanel true - Or click on the card container in the
section on the leftInsert excerpt _layers _layers nopanel true
- Or click on the card container in the
- In the
, this then allows the attributes from the table to be displayedInsert excerpt _tablesproperty_tabs _property_tablestabs nopanel true
In the Properties, under Basic Settings, click
, next to the Table drop-down boxInsert excerpt _tableOnly _tableOnly nopanel true - Drag a table from the Repository into
into the Table drop-down box, as illustrated belowInsert excerpt _repository _repository nopanel true - Click
Insert excerpt _save _save nopanel true - The card container now has access to all the data in the table
If you want to style your card containers and organise your information in a specific way then can use Areas to control the layout and add your
into these areas. See Screen Structure. We will also cover a styled example later on this page. Insert excerpt _attributes _attributes nopanel true
Info | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
While in
|
Displaying Data in a Card
This is achieved by adding data backed components, such as form fields and dynamic text, and setting the attribute data they will display. When dragging attributes onto a card, they are displayed as dynamic text by default and the backing attribute is automatically set.
Adding Backing Attributes
- To display the table data, the dynamic text fields on the card need to be associated with attributes on the table - these are called Backing Attributes
- There are two ways to add backing attributes, either via the form field or via the Right-click on card container on the canvas and select
To add a backing attribute via the form field, right-click on First Name and select Add Backing Attribute Add Attributes to componentInsert excerpt _attributes_layersicon _attributes_layersicon nopanel true - In the Available Attributes selector that opens, tick
first_name
and click the Add button- The form field will now display this data on the screen
- You can also add attributes via the
Insert excerpt _layers _layers nopanel true
- Right-click on LastName and select Add Backing Attribute
- In the Available Attributes selector, tick
last_name
and click the Add button
6. Repeat the above steps to set the backing attribute of Role to the Role field
7. Switch to- by adding form fields or dynamic text from the palette and then right-clicking the field and selecting
Insert excerpt _attributes_add_backing _attributes_add_backing nopanel true - Or, you can right-click on card container and select
, then drag attributes onto the card containerInsert excerpt _show_table_configuration _show_table_configuration nopanel true
- by adding form fields or dynamic text from the palette and then right-clicking the field and selecting
- The attributes will appear as Dynamic Text - use the
Insert excerpt _
property_
tabs _
property_tabs name style nopanel true
- to change the appearance of the text, or see Changing or Creating a Palette
- If you want to change the Dynamic Text to a different palette item, right-click on it and select
Insert excerpt _template_
- If you want to change the Dynamic Text to a different palette item, right-click on it and select
change _template_
change nopanel true
Changing Backing Attributes (Optional)
- If required, the backing attributes can be changed
- Right-click on the form field and select Change Backing AttributeAlternatively, click on the form field on the canvas, then in the Propertiescomponent and select
Insert excerpt _attributes_change _attributes_change nopanel true - You can also do this in the
, under Backing Attribute, next to the Table Attribute field, select theInsert excerpt _property_tabs _property_tabs nopanel true
-
buttonInsert excerpt _attributes_change _attributes_change nopanel true
- You can also do this in the
- In the Available Attributes selector, either tick the attribute and select Add, or drag the attribute across into the Table Attribute field in the Properties
Insert excerpt _property_tabs _property_tabs nopanel true
Linking Views
The Contacts Card Container contains three buttons, which can have actions configured to perform specific activities, such as calling a phone number or sending an email. See 9. Grid Actions and In-Grid Editing.to Filter Results
Card containers can be linked with other types of Views, using background filters, to dynamically change the information displayed on the card container depending on the records selected in the other View.
For example, on a screen with a grid of Companies and a card container of Employees, linking the content will ensure that only employees show on the card container that are associated with the selected company in the grid. See 6. Linking Content on a Screen.
Card Containers in Serene Grey
The following Card Containers can be found in the Serene Grey palette.
Basic
A standard card container with no styling that displays the content of each row of data on a backing table.
Content is displayed by adding fields or dynamic text to a card.
Contacts
A card container with icon and button styling that displays the content of each row of data on a backing table.
Content is displayed by adding fields or dynamic text to a card.
Buttons can be configured to perform actions, such as calling a phone number or creating a new email.
A card container with button styling, displaying data from another table.
A card container that shows one card, displaying data from another table.
A card container that shows one card with an expandable area.
A card container that displays an aggregate view to group repeated values to display as a list.
Users can then select records to filter an existing grid or card component.
A card container that displays a counter that can generate a total. It provides a circular card component that can be used to display a numeric value. This component requires a backing aggregate view that returns a single value in an attribute called "Count".
As above. Includes a label field.
A card container that displays a counter that can generate 3 totals, with label fields. It provides 3 circular counters in a single card component that can be used to display numeric values.
This component requires a backing aggregate view that returns three total values. By default these are called "Count" but the names will need to be changed to display the values shown in the backing view.
A card container that displays a basic Kanban board, designed to display the statuses of different tasks.
Using a Card Container Template - Contacts
In this example, we will add a Contacts Card Container template from the Palette to a screen that will display employee contact information.
- In the Serene Grey palette, expand the Card Containers section
- Drag the Contacts card container onto your screen in the desired location and give it a
Name
- Click on the card container to open its
on the rightInsert excerpt _property_tabs _property_tabs nopanel true - Or click on the card container in the
section on the leftInsert excerpt _layers _layers nopanel true
- Or click on the card container in the
- To display the attributes from a
, in theInsert excerpt _tables _tables nopanel true
, under Basic Settings, clickInsert excerpt _property_tabs _property_tabs nopanel true
, next to the Table drop down boxInsert excerpt _tableOnly _tableOnly nopanel true - Drag a table from the
into the Table drop-down box as illustrated belowInsert excerpt _repository _repository nopanel true - Click
Insert excerpt _save _save nopanel true - Add backing attributes by right-clicking on the First Name dynamic text field and selecting
Insert excerpt _attributes_add_backing _attributes_add_backing nopanel true - In the Available Attributes selector that opens, tick
first_name
and click the Add button- The field will now display this data on the screen
- Repeat these steps for the LastName and Role dynamic text fields
The Contacts Card Container contains three buttons, which can have actions configured to perform specific activities, such as calling a phone number or sending an email. These rely on the hidden fields for email, telephone and mobile being backed by data, search Hidden in the layer section and back these attributes with the appropriate fields.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
To see all of the features available in the Serene Grey palette, see Serene Grey Template Package.