gadgets.MiniMessage

Constructor

gadgets.MiniMessage

A constructor that creates a message.

Parameter

Name

Type

Description

opt_moduleId

String

Module ID.

opt_container

Element

HTML container element that displays a message.

Sample

Method

gadgets.MiniMessage.createDismissibleMessage

Creates a message that the user can close.

Parameter

Name

Type

Description

message

String|Object

An HTML string or a DOM element format message.

opt_callback

Function

The callback function that is called when the message is closed.

Return value

Type

Description

Element

HTML element of the generated message.

Sample

gadgets.MiniMessage.createStaticMessage

Creates a static message that can only be closed with dissmissMessage().

Parameter

Name

Type

Description

message

String|Object

An HTML string or a DOM element format message.

Return value

Type

Description

Element

HTML element of the generated message.

Sample

gadgets.MiniMessage.createTimerMessage

Creates a message that is displayed for only the specified number of seconds.

Parameter

Name

Type

Description

message

String|Object

An HTML string or a DOM element format message.

seconds

number

Number of seconds until the message closes.

opt_callback

Function

The callback function that is called when the message is closed.

Return value

Type

Description

Element

HTML element of the generated message.

Sample

gadgets.MiniMessage.dismissMessage

Closes the message.

Parameter

Name

Type

Description

message

String|Object

An HTML string or a DOM element format message.

Return value

None

Sample

Revision History

  • 12/2010
    • Initial Release.

PREVIOUS

gadgets.json

NEXT

gadgets.Tab