MediaWiki/Tags for Controls

From Jmol
Jump to navigation Jump to search

Tags in the Jmol Extension for MediaWiki that will include controls to act on models

All these tags will insert controls in the page at the same time the page is being loaded. The controls allow the user to apply a script, included in the tag, to the model displayed in a JSmol panel.

These tags must be surrounded by a <jmol> </jmol> tag pair and will act on a model created by a jmolApplet subtag.

Important: the content of the target subtag must match the content of the name subtag of the jmolApplet on which the action is desired.

Many of the 3rd and 4th-level subtags are optional and will take default values based on the sibling subtags (e.g. text defaults to the first characters of script).

jmolButton

Will include as 3rd-level subtags target, text, script

jmolLink

Will include as 3rd-level subtags target, text, script

jmolCheckbox

Will include as 3rd-level subtags target, text, scriptWhenChecked, scriptWhenUnchecked, checked

jmolMenu

Will include as 3rd-level subtags target, menuheight and several item's

Each item subtag will include 4th-level subtags: text, script and, only in one of them, checked

jmolRadioGroup

Will include as 3rd-level subtags target, vertical and several item's

Each item subtag will include 4th-level subtags: text, script and, only in one of them, checked


<< Back to the index page of the Extension.

Contributors

AngelHerraez