The CreatorCon Call for Content is officially open! Get started here.

Is it possible to configure Workspace menu with badge

WNSN
Tera Contributor

Hello,

 

is it possible to configure "badge" on Workspace menus?

Like number of unread records

 

WNSN_1-1688994212560.png

 

1 REPLY 1

Aylee Andersen
Kilo Sage

I'm not sure how dynamic you can make it, but it looks like there is the potential to set a count as a badge. Here is the JSON for the inbox icon from the chrome_toolbar for the example image you posted.

{
  "id": "inbox",
  "label": {
    "translatable": true,
    "message": "Inbox"
  },
  "icon": "inbox-outline",
  "routeInfo": {
    "route": "inbox"
  },
  "viewportInfo": {
    "route": "inbox-sidebar",
    "fields": {
      "opened": false
    },
    "viewportElementId": "wsInboxSidebar"
  },
  "group": "top",
  "order": 300,
  "badge": {
    "count": 0
  },
  "presence": {
    "status": ""
  },
  "show": false,
  "availability": {
    "roles": [
      "awa_agent"
    ],
    "plugin": "com.glide.awa"
  }
}

Take note of the "badge" property with the "count" child. That's what you would want to set on your own chrome_toolbar menu item.