Gadgets.window (v0.9)

NeedsExamples

gadgets.window

Provides operations for getting information about and modifying the window the gadget is placed in.
Note: To use these features you need to put the tag inside your module-prefs TAG.

Methods

gadgets.window.adjustHeight

;<static> gadgets.window.adjustHeight(opt_height)

Parameters
NameTypeDescription |

opt_height

Number

An optional preferred height in pixels; If not specified, will attempt to fit the gadget to its content

Description
Adjusts the gadget height.

gadgets.window.getViewportDimensions

;<static> Object gadgets.window.getViewportDimensions()

Returns
TypeDescription |

Object

An object with width and height properties

Description
Detects the inner dimensions of a frame. See http://www.quirksmode.org/dom/w3c_cssom for more information.

gadgets.window.setTitle

;<static> gadgets.window.setTitle(title)

Parameters
NameTypeDescription |

title

String

The preferred title

Description
Sets the gadget title.

{{ JsApiAlphaList_(v0.9) }}