TabSheet.EditingStart

Syntax

EditingStart: function (sender, args);

Parameters

sender. Event source.

args. Event information. Available arguments: Cell - table cell presented by an object of the PP.Ui.TabSheetCell type, Coord - cell coordinates presented by an object of the PP.Ui.TabSheetCoord type.

Description

The EditingStart event occurs before editing table cells.

Comments

This event is available if table cells can be selected.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Process the EditingStart cell editing event and the EditingEnd editing end event:

// Process event before cell editing
tabSheet.EditingStart.add(function (sender, args) {
    console.debug("Cell is being edited");
    var coord = args.Coord;
    console.debug("Cell coordinates: (" + coord.rowIndex + ", " + coord.colIndex + ")");
});
// Process event after cell editing
tabSheet.EditingEnd.add(function (sender, args) {
    console.debug(args.wasModify ? "changes are saved" : "no changes");
});

After executing the example on cell editing the browser console displays messages with coordinates of edited cell and saved changes.

See also:

TabSheet