DimensionCombo.setCaptionDelegate

Syntax

setCaptionDelegate(function() | PP.Delegate | null);

Description

The setCaptionDelegate method sets caption refresh handler.

Comments

If the handler returns null, the standard handler is used.

Example

To execute the example, place the DimensionCombo component named dimCombo. Add caption refresh handler.

dim = dimCombo.getSource();
// Create a handler to determine caption depending on the maximum number of elements
function temp() { 
return "Total: " + dim.getTotalCount();
};
// Set caption refresh handler
dimCombo.setCaptionDelegate(temp());

after executing the example the caption contains data about maximum number of available elements.

See also:

DimensionCombo