hub.eb?material_id=23&track_id=368

Current Row


A Table representa rows of data and so the value of a Table Column depends on the row of the data being examined. Actions that get and set Table Column values are performed on the Current Row of the Table. 

You can get and set a Table's Current Row via the tables interface of the Verj.io JavaScript API, for example:

// get the Current Row of myTable
var currentRow = tables.myTable.getCurrentRow();

// set the Current Row of myTable to 10
tables.myTable.setCurrentRow(10);

Note that the first row of data in a Table is row number 1.

Server-side events triggered by a Table will automatically set the Current Row of the Table to the row the event was triggered on.

For example, when an end-user clicks on a button on the 12th row of myTable, an On Click event is triggered in the Verj.io Runtime Environment. If a script in the event calls tables.myTable.myColumn.value to get the current value of myColumn, the value of myColumn in the 12th row of the data is returned.

 

Current Module

Part of tracks

Related