Skip to main content

Configuration


Widget

A top level configuration defining a 3DDASHBOARD widget app that could be added to the compass.

OverviewStructure
widget-overview.pngwidget-structure.png

Widget properties

Prop NameDescriptionData TypeRequiredExample
columnsTable column definitions. Columnsobjectno"columns": { "title": { "label": "Title", "data": "title" } }
commandsCommand definitions. Commandsobjectno"commands": { "csvExport" : { "type": "export", "label": "CSV Export", "settings": { "columns": [ "title", "description" ], "excludeHiddenColumn": true } } }
defaultServiceParamsThis is used for support caching. Servicesobjectno"defaultServiceParams": { "enableCache": false, "cacheTimelimit": 1 }
descriptionVisible in admin UI widget liststringno
datasetsDataset definitions. Used to load data rom the graph into components (e.g. to a table) Data setsobjectno"datasets": { "ups-roots-example": { "type": "expand", "edgeStatement": "[type='VPMInstance']", "nodeStatement": "[type='VPMReference']" } }
extendsInherits from other configs to reuse common definitions.array stringno"extends" : ["dsapi-dseng.json", "presets.json"]
fieldsForm field definitions Fieldsobjectno"fields": { "title" : { "label": "Title", "data": "title", "type": "text" } }
formsForm definitions Formsobjectno
layouts
resourcesLoad additional resources for additional functionality.array stringno["plugin.js", "excelReport.js"]
requiresContextContextual widgets requires an object to be dropped and initially renders a drop zone.booleanno
rootThe main component (e.g. a layout, table, form)stringyes
servicesService definitions used to retrieve data Servicesobjectno"services": { "changeAction" : { "uri": "/resources/v1/modeler/dslc/changeaction/{{contextId}}", "transformer": { "name": "corpusgeneric", "inputs": { "identifier": ["id"] } } } }
tablesTable definitions Tablesobjectno"tables": { "myTable" : { "datasets": [ "contextNode" ], "columns": [ "title", "state" ] } }
tabs
titleWidget name displayed in the UIstringyes
toolbarsToolbar definitions Toolbarsobjectno
{
"$schema": "https://widgets.technia.cloud/schema.json",
"title": "",
"description" : ""
"root" : "",
"requiresContext": true,
"resources": [],
"extends": [],
"tables" : {},
"forms" : {},
"layouts" : {},
"tabs" : {},
"charts" : {},
"columns": {},
"fields": {},
"datasets": {},
"toolbars": {},
"commands": {},
"services": {}
}