Definition of the model which is able to create, read, edit, remove and validate records of spreadsheets(grids).
const abstractGridModel = new UIKernel.AbstractModels.Grid();
async Object create(Object record)
Adds a record to the grid model data and returns an ID of the added record.
async Array read(Object settings)
Retrieves grid records applying there filters, sorting, limits and offset.
async Object getRecord (Any id, string[] fields)
Get record by ID.
async Array update(Object[][] changes)
Applies record changes.
string[] getValidationDependency(string[] fields)
Return fields(Array of string values) that need to be sent additionally to validate fields specified in passed parameters.
async ValidationErrors isValidRecord(Object record)
Validates a record.