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
Constructor | Description |
---|---|
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
Method | Returns | Description |
---|---|---|
addListener(eventType:String,
handlerFunction:Function) | None | Adds an event listener. |
addParticipant() | None | Adds the current user as a participant to the wave. |
addReply(participantId:String,
opt_callback:Function) | None | Adds 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() | String | Returns the ID of the
<iframe> . |
init(container:Object,
opt_loadCallback:Function) | None | Creates 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) | None | Loads 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.