JavaScript
A5.ViewBoxaddElementClass Method
Syntax
A5.ViewBox.addElementClass(value,className)
A5.ViewBox.addElementClass(id,className)
Arguments
- valueany
The value of the element(s) in the view box to add the class name to.
- idstring
The ID of the element in the view box to add the class name to. Must be prefixed with a "#", for example "#button1".
- classNamestring
The class name to add to the element(s).
Description
Add a class name to element(s) in the view box.
Example
// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl // assume vbObj is a pointer to an instance of the A5.ViewBox class vbObj.addElementClass('a','highlight'); // add the class name "highlight" to the element(s) with the value of "a"