SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.onCurrentChanged event
入力フォーカスを持つセルの位置が変更になった時に発生する。 変更になる前にはonCurrencChangingイベントが発生する。
function onCurrentChanged (grid: GridBase, newIndex: CellIndex);
- Returns
- Void
- Parameters
- grid - GridBase.
- newIndex - CellIndex.
- Note
- パラメーターnewIndexは内部共有客体なので保管してはいけない。 newIndex値が必要ならnewIndex.cloneして使うべきである。
Code -1
grdMain.onCurrentChanged = function (grid, newIndex) {
$('#currRow').text(newIndex.rowIndex);
#('#currCol').text(newIndex.column.name());
};
- See Also
- onCurrentChanging
- CellIndex
- Examples
- Hello Grid]