Skip to main content

Question regarding config.json and documents for widgets

3 replies [Last post]
Joined: 2008-02-06


I am working with JMaki (with DOJO 1.0.2) and I have 2 questions:
1. Where can I found information regarding the attributes each widget in JMaki can receive, or any documentation of the usage of widgets?
2. where can I find information regarding what is config.json and what options can I configure there?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-02-10

Hi Mark,

We have some documentation for the widgets and config.json here: (though this is a bit dated)

We have moved most of the config stuff to the widget.json file so that widget libraries are self contained. Please let me know if you still have questions. We are trying to update the documentation but just can't get to it fast enough.


Joined: 2008-02-06

as I understand from the documents and from the examples the config.json is mostly used to include glue objects where I can add specific events handling for my application.
Am I correct?


Joined: 2005-02-10

Actually, config.json is used for several things not just glue.
First you can specify glue files that are specify to a page so that a javascript file will only be loaded for a specify page and not all pages which is the default. In addition, you can specify the global theme for the web application You also specify extensions in the config.json file.

Example config.json with these features is:
{"config": {
"globalTheme": "stealth",
"logLevel": "off",
"theme": "/resources/css/themes/stealth/theme.css",
"glue": {"includes": [
"url": "*market.js[",
"lib": "/market.js"
"extensions": [
"url": "*",
"name": "google.gears"
"version": "1.0"

For glue url is the page which will get the script tag to include the javascript file identified by lib.

For extensions the url is the page which will have access to the extension and name is the name of the extension. In this case it is google gears. See my blog at
for more info on extensions.