Spoiler.Resized

Syntax

Resized: function(sender, args);

Parameters

sender. Event source.

args. Information on the event. Arguments: delta - value that represents the panel size change.

Description

The Resized event occurs after resizing the panel.

Example

To execute the example, the page must contain the Spoiler component named spoiler (see Example of Creating the Spoiler Component). Add handlers of the panel size change events:

// Set handlers of the panel size change events
spoiler.Resized.add(function (sender, args) {
    console.log("Panel size is changed");
});
spoiler.Resizing.add(function (sender, args) {
    console.log("Panel size is being changed");
});

Reduce the panel size:

As a result the console displays messages about panel size change:

Panel size is being changed

Panel size is changed

See also:

Spoiler