Constructors
| Name | Type | Description |
|---|---|---|
viewId |
string |
optional
the viewId of this HTML Component (The viewId specifies the destination in the DOM. This destination must exist otherwise the gadget is not rendered.) |
Methods
-
addBubble(config)
-
Adds a bubble to the Timeline
Name Type Description configobject The json configuration object
Name Type Default Description idstring Unique identifier for this bubble (The bubbleOnClick function is called with this id as parameter)
contentstring The content to display in the bubble (can contain html)
highlightboolean false optional Highlight the bubble
cssClassstring optional Additional css class to add to the bubble
titlestring optional The title that is displayed at the top of the bubble
onClickstring | boolean optional Name of a client function to be executed on click (function is called with bubble id as parameter). Set to
falseto disable onClick for this bubble. (since Documents 5.0e)Example
// Example for the config object var bubbleConfig = { id: "bubble1", content: "My bubble content.", highlight: true, cssClass: "MyCssClass", title: "MyTitle" onClick: "myClientFunctionName" }; gadgetTimeline.addBubble(bubbleConfig); -
setBubbleOnClick(onClickFunction)
-
Sets a function which is executed when a bubble is clicked.
Name Type Description onClickFunctionfunction The function to be executed on click. The function is called with the
idof the clicked bubble -
setHeader(header)
-
Sets the header of this timeline to be displayed above the timeline
Name Type Description headerstring the new header
-
transfer()
-
Make this object ready for beeing transferred to the client