TabSheet.deleteColumns

Syntax

deleteColumns(indexes: Array, fireEvent: Boolean, callback: PP.Delegate);

Parameters

indexes. Array of column indexes in ascending order.

fireEvent. Indicates whether the event of table column deletion is to be fired. If the parameter is True, the event is fired, otherwise it is not fired.

callback. Callback function.

Description

The deleteColumns method deletes an array of table columns.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Delete three columns with the indexes 1, 2 and 3, and three rows with the indexes 0, 1 and 2:

// Delete columns
tabSheet.deleteColumns([1, 2, 3]);
// Delete rows
tabSheet.deleteRows([0, 1, 2]);

After executing the example selected table rows and columns are deleted:

See also:

TabSheet