window.renderCell = function(result, {col, row}) { if(col.name === 'name') { if(row.data.type == 'public') result[0] = {html: "" + authorList['public'] + ''}; if(row.data.type == 'private') result[0] = {html: "" + authorList['private'] + ''}; result[1] = {html: '' + row.data.name + ''}; } return result; }