I have an editable cell in a datatable. How can I trigger a handler when the input has been changed. I would like to send a request to update the data and reload the datatable.
Also how can you conditionally show a data cell? So for example only even IDs have an editable input. But the column remains for the other rows.
I had to do
on:{
onAfterEditStop:function(state, editor){
//...
}
}}
Also how can you conditionally show a data cell?
Can you please clarify the use-case? If you need to show something else in the cell, you can set the template in the column config:
Thanks that looks like it should work.
However I currently have this. http://webix.com/snippet/ce0e1add
I would like to conditionally show the cancel button. When I add the logic to the template function it shows the raw string instead of the button.
The current notation will work only in the string templates. If it’s a function, the common
objects should be returned this way:
template: function(itemObj, common){
return common.cancelButton(itemObj, common)
}
Thanks! That works great!!!