Gadgets.window (v0.9)

From VZ Developer Wiki
Jump to: navigation, search

This documentation is not completed yet and will be extended by more examples in future.

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 <Require feature="dynamic-height"/> inside your module-prefs TAG.

Methods

gadgets.window.adjustHeight

<static> gadgets.window.adjustHeight(opt_height)
Parameters
Name Type Description
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
Type Description
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
Name Type Description
title String The preferred title
Description
Sets the gadget title.



OpenSocial (v0.9)

gadgets

gadgets.io

gadgets.json

gadgets.Prefs

gadgets.util

gadgets.views

gadgets.flash

gadgets.MiniMessage

gadgets.oauth.Popup

gadgets.rpc

gadgets.skins

gadgets.pubsub

gadgets.Tab

gadgets.TabSet

gadgets.window

gadgets.i18n

opensocial

opensocial.Activity

opensocial.Address

opensocial.Album

opensocial.BodyType

opensocial.Collection

opensocial.CreateActivityPriority

opensocial.DataRequest

opensocial.DataResponse

opensocial.Email

opensocial.Enum

opensocial.Environment

opensocial.EscapeType

opensocial.IdSpec

opensocial.MediaItem

opensocial.Message

opensocial.MessageCollection

opensocial.Name

opensocial.NavigationParameters

opensocial.Organization

opensocial.Permission

opensocial.Person

opensocial.Phone

opensocial.ResponseItem

opensocial.Url

osapi.Request

osapi.BatchRequest

osapi.people

osapi.activities

osapi.appdata

osapi.messages

osapi.http