ListCaption.AutoSize

Syntax

AutoSize: function(sender, args);

Parameters

sender. Event source.

args. Information on the event. Does not contain arguments.

Description

The AutoSize event occurs before autofit of column width.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Get title
caps = Tree.getCaptions();
cap = caps.getCaptions()[0];
// Set event
cap.AutoSize.add( function(sender, args) {
  console.log("AutoSize event:");
  console.log(args);
});
// Initialize event by double clicking on column separating line.

After executing the example the event is added.

See also:

ListCaption