ResourceDetails Plugin

Members

(inner) ResourceDetails

render a panel for detail information about a resource inside the viewer pages
Properties:
Name Type Description
tabs array array of tab object representing the structure of the displayed info properties
Source:
Example
{
 "name": "ResourceDetails",
 "cfg": {
     "tabs": [
         {
             "type": "tab",
             "id": "info",
             "labelId": "gnviewer.info",
             "items": [
                 {
                     "type": "text",
                     "labelId": "gnviewer.title",
                     "value": "{get(state('gnResourceData'), 'title')}"
                 },
                 {
                     "type": "link",
                     "labelId": "gnviewer.owner",
                     "href": "{getOwnerProfileUrl(state('gnResourceData'))}",
                     "value": "{getUserResourceName(context.get(state('gnResourceData'), 'owner'))}",
                     "disableIf": "{not get(state('gnResourceData'), 'owner.username')}"
                 },
                 {
                     "type": "date",
                     "format": "MMMM Do YYYY",
                     "labelId": "{getDateTypeLabelId(state('gnResourceData'))}",
                     "value": "{get(state('gnResourceData'), 'date')}"
                 },
                 {
                     "type": "query",
                     "labelId": "gnviewer.resourceType",
                     "valueId": "{getResourceTypeLabelId(state('gnResourceData'))}",
                     "pathname": "/",
                     "query": {
                         "f": "{get(state('gnResourceData'), 'resource_type')}"
                     }
                 },
                 {
                     "type": "html",
                     "labelId": "gnviewer.supplementalInformation",
                     "value": "{get(state('gnResourceData'), 'supplemental_information')}"
                 }
             ]
         }
     ]
 }
}