Getting started
...
Create an app from scratch
Customize the Hello-Jigx solut...
Change an icon and add a badge
5min
You can easily customize widgets on the by changing their icons and adding additional components such as badges to the widgets. In this section, you learn to change the calendar icon and add a badge using an expression on the calendar to show the number of calendar events for the week.
For a view of the icons in a list see the Types - List - List with all icons in the jigx-samples solution available in Quick start.
Solution with Calendar -3 icon
Solution with calendar badge
- Replace icon: calendar-3 with icon: calendar.
- Under icon add a new line for the badge code that shows the number of calendar events for the week. Add badge: Then use the =$count(@ctx.datasources.calendar-data.id) expression to count the events in the calendar and show the number in the badge on the .
Updated 01 Nov 2023
Did this page help you?