Item List Widget Template
Last updated
Last updated
The 'Item List' widget template allows you to design a user interface to display a list of items efficiently. It supports handling a large number of items by incrementally loading them as you scroll. Each item can include a title, subtitle, status.
This article explains designing a user interface with the Item List widget template.
Here are step-by-step instructions for designing a user interface using the Item List widget Template.
On the Lucy app homepage, go to the My Work tab on the left.
A list of existing folders will appear. To open a folder, choose the one you need and click on it.
Click on the User Interfaces tab and click the Plus icon.
Select the Start from Scratch option.
A list of pre-built widget templates will display.
Click on the Item List template and click Edit this Template to start customising the template.
This will open the selected template on the widget designer page.
Enter a name and a description.
Click the General tab on the right.
In the Name field, type in a unique descriptive name.
In the Description field, enter a brief description.
Select and bind a data source to the widget.
Click on the 'Data source is required' notification panel appearing at the bottom.
Click the Bind a source button on the right.
You can either select an existing Lucy action or a database as the data source.
To select a database.
Go to the Databases tab. Search and click on the desired database.
Click Select this Source and you will see a preview of your data.
Filter Data: To filter data based on the conditions set.
Aggregate Data: Used to summarise data to reveal meaningful patterns and trends, such as calculating the sum, count, average, minimum, and maximum.
Use the Filter data and Aggregate data options as necessary to prepare your data.
Once you are satisfied with the final outcome, click Looks Good.
Set parameters to the widget.
Click the 'Fields are required' notification panel that displays. Then, you'll be redirected to the Item List section on the properties panel on the right.
Map fields to the corresponding columns/values in the selected database.
Profile Image: If you have a profile image in the database, click the Profile Image field and select the required value from the pop-up list.
Profile Name: If you don't have a profile image in the database, the default value will be used.
Title: Click the Title field and choose the required value from the pop-up list.
Subtitle: Click the Subtitle field and choose the required value from the pop-up list.
Date: Click the Date field and choose the required value from the pop-up list.
Status Field: Click the Status field and choose the required value from the pop-up list.
Represent different Statuses using colours in the widget.
Go to Status section on the properties panel.
Add a new status and map a colour.
Click the plus icon. Then, a new status will appear in the status list.
Rename the status (e.g., New) and select a colour.
Rename and customise the rest of the statuses as necessary.
Add a Title to the widget.
Click the title section of the widget and the properties panel will open on the right.
Go to the Title section.
In the text field, type in a appropriate title.
Customise the widget as necessary, e.g., changing colours, font size, adding buttons etc.
Click the Preview button at the top to view your design.
Once you are satisfied with the customisation, click Save Widget.