# Examples for node-red-node-ui-table

**URL:** https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256
**Category:** Dashboard
**Created:** [12 August 2019 17:52 UTC](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256 "2019-08-12T17:52:43Z")
**Posts on this page:** 1
**Showing post:** 81

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [7 June 2020 22:01 UTC](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256/81 "2020-06-07T22:01:23Z")

</div>

Yes ... isn't too difficult. You need a callback function to send the edited data back to Node-RED. Best is to define one for the hole table independent of the type of editor defined for the column:

`msg.ui_control.tabulator.cellEdited`.

```auto
function(cell){     
    this.send({
        ui_control:{callback:'cellEdited'},         
        payload:cell.getValue(),
        oldValue:cell.getOldValue(),
        field:cell.getColumn().getField(),
        id:cell.getRow().getCell('id').getValue()
    }); 
}

```

Then you only have to define the editor type for every column you want to have the edit feature enabled like `msg.ui_control.tabulator.colums[{field:'yourColum',editor:'input'}]`

If you need some kind on validation you perhaps write individual `cellEdited` functions for each column.

ui-table node will send a message for every edited field containing the row (id or any other index), the column (field), new and old value.

---

_[View the full topic](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256)._
