A set of meta-data properties must be defined to specify which primary resources provide widget functionality. In the context of an extension, you can define your widget meta-data by creating a ‘widget.json’ file in the widget directory of your extension.

The import item for a widget descriptor is described in the example below:

{
  "name": "Widget Name",
  "version": 1,
  "global": false,
  "javascript": "widget-name-js",
  "i18nresources": "widget-name",
  "availableToAllPages": true,
  "pageTypes": ["product", ...],
  "jsEditable": true,
  "config": {
  }
}

The product details widget descriptor example above includes some properties used for the “fragmentation” concept of a widget. It provides a full view of what meta-data could be required for a widget delivered via an extension. The following list outlines each property:

Other Properties for a Widget Type:


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices