Reference Constructor var myHtmlControl = new HtmlControl(html, { visible?, selectable?, printable? } ); - html is a required argument. It must be a string of valid (X)HTML and it creates the contents of your HtmlControl.
- visible is an optional boolean argument. It determines whether or not the HtmlControl is visible when first created. The default value for visible is TRUE.
- selectable is an optional boolean argument. It determines whether or not the contents of the HtmlControl can be selected and copied to the clipboard. The default value for selectable is FALSE.
- printable is an optional boolean argument. It determines whether or not the contents of the HtmlControl will be printed if you print out the map. The default value for printable is FALSE.
Optional arguments visible, selectable and printable are passed as an object literal if their default values need to be changed. Properties var i = myHtmlControl.isVisible; - isVisible returns a boolean true or false value to indicate whether or not the HtmlControl is currently visible.
Methods myHtmlControl.setVisible(false); - setVisible(boolean) accepts a boolean true or false value and set's the HtmlControl's visibility accordingly.
HtmlControl: Index
Posted by martin
on July 26 2008 05:34:36
| 2149 Reads ·
|
|