Classes

The following three classes are currently available with the Wave Embed API.[47]

WavePanel

This class defines an object to hold the embedded wave, in which an <iframe> is constructed.

Constructor

ConstructorDescription
WavePanel(opt_rootUrl?:String)Constructs a WavePanel in the passed-in container. An <iframe> is created inside the supplied container; if the container is null, the <iframe> is instead appended to the current document. The created object can be used to interact with the panel and indirectly with any displayed wave.

Methods

MethodReturnsDescription
addListener(eventType:String, handlerFunction:Function)NoneAdds an event listener.
addParticipant()NoneAdds the current user as a participant to the wave.
addReply(participantId:String, opt_callback:Function)NoneAdds a reply to the currently loaded wave. An empty reply will be added to the wave for the user specified. If participantId is empty, an attempt is made to authenticate the user against Google. If that fails, a URL is provided in the callback to which the client should be redirected to provide for the login.
getFrameId()StringReturns the ID of the <iframe>.
init(container:Object, opt_loadCallback:Function)NoneCreates the wave <iframe> inside the given container. This creation is not done in the constructor to allow the caller to set various initialization options.
loadSearch(searchExpr:String, opt_callback:Function)NoneLoads a new search expression into the digest. This can be called before or after init. Not yet implemented. ...

Get Google Wave: Up and Running now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.