ShowStatDialog: function(sender, args);
sender. Event source.
args. Event information.
The ShowStatDialog event occurs on displaying the Summary Statistics dialog box.
The Summary Statistics dialog box is displayed by means of the context menu if the workbook is used as a dashboard block.
Executing the example requires that HTML page contains the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Process the ShowStatDialog event:
// Get workbook data area
var dataView = workbookBox.getDataView();
// Get workbook table
var lanerBoxView = dataView.getGridView();
// Process the ShowStatDialog event
lanerBoxView.ShowStatDialog.add(function (sender, args) {
console.log("Event arguments: ");
console.log(args);
});
// Initialize event
lanerBoxView.ShowStatDialog.fire(this);
After executing the example the browser console displays event arguments on displaying the Summary Statistics dialog box.
See also: