forked from cytoscape/cytoscape.js
-
Notifications
You must be signed in to change notification settings - Fork 0
ExtensionOptionsObject
maxkfranz edited this page May 1, 2012
·
2 revisions
An extension options object is a key-value map containing options for a component of Cytoscape Web, such as a layout or a renderer. For any extension options object, there is a single mandatory field — the options.name field.
For example:
var options = {
name: "foo", // the name field is mandatory
bar: "baz",
hi: "ho",
lets: "go"
};Note the above is just an example; it isn't for any existing component.
The options.name field is the identifier which indicates the particular extension to use. The types of extension options objects are detailed in the sections that follow.
Only extension that are included with the default distribution of Cytoscape Web are included here. Refer to the documentation and source code of third party layouts, renderers, exporters, and the like.