forked from tsai/budibase
2 changed files with 0 additions and 4 deletions
@ -1,8 +1,6 @@ |
|||||
// https://www.ag-grid.com/javascript-grid-value-setters/
|
// https://www.ag-grid.com/javascript-grid-value-setters/
|
||||
// These handles values and makes sure they adhere to the data type provided by the model
|
// These handles values and makes sure they adhere to the data type provided by the model
|
||||
export const number = (params) => { |
export const number = (params) => { |
||||
console.log('Params: ', params) |
|
||||
console.log('New Value: ', parseFloat(params.newValue)) |
|
||||
params.data[params.colDef.field] = parseFloat(params.newValue); |
params.data[params.colDef.field] = parseFloat(params.newValue); |
||||
return true; |
return true; |
||||
} |
} |
||||
Loading…
Reference in new issue