data-defaults object (a model of field values, plus style and helptext) applies to each method.
Inline JSON
Pass a JSON object in thedata-defaults attribute of the script tag. Self-contained, with nothing to host.
External URL (JSONP)
Pointdata-defaults at a hosted file that returns the object wrapped in jsonCallback(...). Best for reusing configuration across pages. See Load widget defaults from a URL.
Admin console
Set property/value pairs centrally, tied to your key, with no attribute needed. See Manage widgets from the admin console.What you can configure
Thedata-defaults object accepts three kinds of content:
For the complete list of configurable field names and accepted values, see Object model and default properties.

