Caplin Trader 5.1.0

Class: module:ct-grid/decorator/NoDataFoundBubbleMessageDecorator

module:ct-grid/decorator/NoDataFoundBubbleMessageDecorator(decoratorConfig)

new module:ct-grid/decorator/NoDataFoundBubbleMessageDecorator(decoratorConfig)

Constructs a NoDataFoundBubbleMessageDecorator instance — end-users will never need to do this themselves since grids are fully constructed based on their XML definition files by the module:ct-grid/GridComponentFactory class.

The NoDataFoundBubbleMessageDecorator renders a bubble containing an explanatory message header and body over any grid when there is no data to be displayed. The headerText attribute will set the header text of the bubble and the bodyText attribute will set the body message. A third attribute, classname adds a CSS class string to the message bubbles's main element.

Default message if attributes are omitted:
headerText: "No matching products found"
bodyText: "Please adjust your search criteria."
classname: ""

Parameters:
Name Type Description
decoratorConfig object
Properties
Name Type Attributes Default Description
className string
headerText string <optional>
i18n("ct.grid.no.data.found.default.header")
bodyText string <optional>
i18n("ct.grid.no.data.found.adjust.search")
noRowsFoundHeaderText string <optional>
decoratorConfig.headerText
noRowsFoundBodyText string <optional>
decoratorConfig.bodyText
connectionLostHeaderText string <optional>
i18n("ct.grid.no.data.data.unavailable")
connectionLostBodyText string <optional>
i18n("ct.grid.no.data.received")
Implements:

Methods

onClose()

Implements:
See:

onOpen()

Implements:
See:

onRowDataReceived()

Implements:
See:

onRowDataRequested()

Implements:
See:

onRowDataUnavailable()

Implements:
See:

onSizeChanged()

Implements:
See:

setGridView()

Implements:
See: