Skip to main content

Summary template

Description

This template displays a user's activities summary in the Profile Widget, showing all activities associated with the user.

Control classes

ClassDescriptionRequired
mambo-ctrl-timelineWrapper for the entire timelineYes
mambo-ctrl-missionsToggles mission filtering. When clicked again, reverts to previous filter settings. Toggles mambo-ctrl-selected class based on filter stateNo
mambo-ctrl-achievementsToggles achievement filtering with the same behavior as mambo-ctrl-missionsNo
mambo-ctrl-levelsToggles level filtering with the same behavior as mambo-ctrl-missionsNo
mambo-ctrl-giftsToggles gift filtering with the same behavior as mambo-ctrl-missionsNo
mambo-ctrl-behavioursToggles behaviour filtering with the same behavior as mambo-ctrl-missionsNo
mambo-ctrl-kpisToggles KPI filtering with the same behavior as mambo-ctrl-missionsNo
mambo-ctrl-selectedApplied to filter buttons that are currently selectedNo

Template data

VariableDescriptionType
isLoadingFlag indicating whether user activities are still loadingBoolean
dataArray of activities performed/unlocked by the user. Extends the default Activities API model to facilitate summary rendering. Monitor the mambo.data.activities event to examine the data structureArray

Implementation example

This example shows a basic summary template with loading state handling:

JavaScript

Customisation options

Consider these enhancements:

  • Creating visual timelines with activity icons
  • Adding date filtering and searching
  • Implementing grouping by activity type
  • Adding interactive elements for detailed activity views
  • Creating visualisations for activity patterns over time