setCaptionDelegate(function() | PP.Delegate | null);
The setCaptionDelegate method sets caption refresh handler.
If the handler returns null, the standard handler is used.
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: