Module

cellEdit

Process edit of a cell and optionally save the data

Parameters:
Name Type Description
name string

name of the field (lower case)

value *

the new value for name field

rowIndex number

row Index ( index in the data array on client)

currentData rowObject

RowObject for the entire row prior to change

appEnv appEnv

app Environment from setup

  • {data: updated data, status: status }
promise
Example
data schema {column1: value, column2, value,...}
status schema {statusCode: 0|1|2, msg: some string}
The currentData object is also updated with the latest values.

const r = await cellEdit'x1',100, 1, d, appEnv)
    - If the column has an handler it will be called.
    - If 'main" handler is specified, it will be called.
    - If autoSave is true
      - The 'term' handler(if specified) will be called
      - The data for that row will be persisted to the server