HtmlDrawable
(
content
,
width
,
options
)
- Parameters:
-
content <object>
a JSON object describing the content of the HtmlDrawable. The object must either contain a html property of type string containing the HTML string (see example above), or a uri property of type string pointing to some HTML content. If both properties are specified, html takes precedence to uri. However, at least on of html and uri must be specified. -
width <float>
The width of the HTML drawable, in SDUs. Must be a positive number. Controls how wide the HtmlDrawable will be rendered on the screen. The height of the HtmlDrawable will be automatically adjusted keeping the aspect ratio of the Drawable. -
options <object>
Setup-Parameters to customize additional object properties.
Accepted options-properties are- enabled
- horizontalAnchor
- verticalAnchor
- offsetX
- offsetY
- zOrder
- rotation
- scale
- opacity
- viewportWidth
- updateRate
- onClick
- onLoaded
- onError
- roll
- tilt
- heading
- backgroundColor
- clickThroughEnabled
- allowDocumentLocationChanges
- onDocumentLocationChanged