LanerBoxView.RequestHistory

Syntax

RequestHistory: function(sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments: Row - row index, Column - column index of the cell, history of which is requested.

Description

The RequestHistory event is fired on requesting value history for specified cell in workbook table.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Process the RequestHistory event, showing coordinates of the cell whose history is requested, in the browser console:

// Get workbook data area
var dataView = workbookBox.getDataView();
// Get workbook table
var lanerBoxView = dataView.getGridView();
// Process the RequestHistory event
lanerBoxView.RequestHistory.add(function (sender, args) {
    console.log("Selected cell coordinates: (" + args.Row + ", " + args.Column + ")");
});

After executing the example select History in context menu of any data cell. After firing this command the Changes History window appears in the screen, and the browser console displays coordinates of the cell whose history is requested:

Coordinates of selected cell: (1, 8)

See also:

LanerBoxView