Can I use IF in the template of table definition

Hi,

I would like to ask if I can use something like

}, {
    id: "name",
    template: "#disable#" == 1 ? "<a href=action=EDIT_ITEM&uid=#id#>#name#</a>" : "#name#",
    header: [ app.i18.labels.datatables.name, {
        content: "serverFilter"
    } ],
    width: 230,
    sort: "server"
}, {
  template: "#disable#" == 1 ? "<a href=action=EDIT_ITEM&uid=#id#>#name#</a

you need to use function instead of string template:

template: function(obj, common){
    if(obj.disable){
      return "<a href=action=EDIT_ITEM&uid="+obj.id+">"+obj.name+"</a>"
   }else{
      return ...
   }
}

http://docs.webix.com/datatable__templates.html

thanks very helpful