Basic Zimlet Definition Tags

Revision as of 23:03, 15 March 2006 by Jylee (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

zimlet

<zimlet> tag is the top level element for Zimlet definition file.

Supported attributes:

  • name - must match the name of Zimlet definition XML file.
  • version
  • description

May contain following elements:

  • include
  • includeCSS
  • resource
  • handlerObject
  • zimletPanelItem
  • contentObject
  • serverExtension
  • userProperties

include

Indicates Javascript files used by the Zimlet. The listed Javascript files are automatically loaded by the Zimlet framework in the order specified in the definition file.

includeCSS

Indicates CSS style sheet files used by the Zimlet. The listed CSS files are automatically loaded by the Zimlet framework in the order specified in the definition file.

resource

Indicates additional resource files, such as XSL, GIF, or JPEG images.

handlerObject

Name of the top level Javascript object. The object must declare ZimletBase as the prototype. The object is automatically instantiated by Zimlet framework.

zimletPanelItem

Creates an entry in the Zimlet panel area.

Supported attributes:

  • label
  • icon

May contain following elements:

  • toolTipText
  • dragSource
  • contextMenu

contentObject

Specify the behavior of content object in the document that Zimlet matches.

May contain following elements:

  • matchOn
  • toolTip

serverExtension

Specify the rules for server side indexing.

Supported attributes:

  • hasKeyword
  • extensionClass
  • regex

userProperties

Lists per-user properties used by the Zimlet.

May contain following elements:

  • property
Jump to: navigation, search