The Widget Object

A widget that can be added to the dashboard to display information or functionality

Properties

NameDescriptionTypeRequired
uidUnique identifier of the dashboardWidget objectstring
app_code_nameThe code name of the app that owns the widgetstring
display_nameThe widget display name in different languagesobject
permissionsThe permissions required for the widget to show up for a staff member. If it is null, no restrictions will be enforcedarray of unknowns
moduleThe module (FF) required for the widget to show up for a staff memberstring
component_dataa configuration object that is passed to the widget to initialize it. Can vary based on the widget classobject
dimensionsThe dimensions of the widget in grid unitsobject
created_atThe time the staffWidgetsBoard was createdstring
updated_atThe time the staffWidgetsBoard was last updatedstring

Dimensions Properties

NameDescriptionTypeRequired
min_widththe minimum width of the widget in grid unitsintegerYes
min_heightthe minimum height of the widget in grid unitsintegerYes
heightthe default height of the widgetinteger
widththe default width of the widgetinteger
max_widththe maximum width of the widget in grid unitsintegerYes
max_heightthe maximum height of the widget in grid unitsintegerYes

Example

JSON

{
  "uid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "app_code_name": "myappcode",
  "display_name": {
    "en": "Payments",
    "fr": "Paiements"
  },
  "permissions": [
    "payments_edit",
    "payments_read"
  ],
  "module": "Payment",
  "dimensions": {
    "max_height": 2,
    "min_height": 1,
    "height": 2,
    "max_width": 3,
    "min_width": 1,
    "width": 2
  },
  "component_data": {
    "name": "iFrame",
    "config": {
      "url": "www.partnerdomain.com/calendar"
    }
  },
  "created_at": "2021-07-20T14:00:00.000Z",
  "updated_at": "2021-07-20T14:00:00.000Z"
}