Change an icon and add a badge
Overview
Steps
Change an widget icon
Add a badge to the calendar widget
# The system name that uniquely identifies the jig
title: Calendar
# The jig type used to display a calendar with the current date
type: jig.calendar
# icon that displays on the widget on the home hub
icon: calendar
# Add a badge to the calendar widget and use an expression to count the entries in the calendar by id
badge: =$count(@ctx.datasources.calendar-data.id)
# The expression that structures the data from the datasource before binding it to the jig. Expressions are JSONata based
data: [email protected]
item:
options:
title: [email protected]
from:
format:
dateFormat: lll
text: =$fromMillis($toMillis($now()) + @ctx.current.item.eventStart * 3600000)
location: [email protected]
people: [email protected]
tags: [email protected]
to:
format:
dateFormat: lll
text: =$fromMillis($toMillis($now()) + @ctx.current.item.eventEnd * 3600000)
type: component.eventLast updated
Was this helpful?