Child pages
  • Specification (.spec file)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titlespec file definition
{
	"name": "packagename-componentname", // String
	"displayName": "more descriptive name that is shown in the designer", // String
	"version": the component version (integer)
	"icon": "A reference to the icon shown in designer" ,
    "preview": "A reference to the preview gif to be displayed" ,
	"definition": "A reference to the js file of this component",
    "group": true // default true, so the definition file can be grouped.
	"libraries": Array of js/css definitions (map with 
                 'name'-the lib name, 'version'-the lib version, 'url'-the lib url, 
                 'mimetype'-the lib mimetype, one of 'text/javascript' or 'text/css', 
                 'group' - a false when this lib should not be grouped, default true) that needs to be included for this component,
	"model": {
	  "propertyName": type description, optional default value
	},
	"handlers": {
	  "functionName": "function type"
	},
	"api": {
	  "functionName": signature description json
	},
	"types": {
	  "typename": {
	    "propertyName": "type description"
 	  }
	}
}

...