Adds a row.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
function addRow (rowData) |
Object. The values to add.
The following code handles the click event of an HTML button and adds a new row to a Grid instance. The index of the grid is incremented with one from the max index of the current data:
JavaScript Copy Code |
---|
function onAddClick(sender) var data = grid.model.getRowData(grid.model.rowCount); grid.addRow(data).then((newRow) => |