| 123456789101112131415161718192021222324252627 |
- window.renderCell = function(result, info)
- {
- if(info.col.name == 'name' && result)
- {
- const group = info.row.data;
- let html = '';
- if(group.main == '1') html += "<span class='label gray-pale rounded-xl'>" + buildinLang + "</span>";
- if(html) result.push({html});
- }
- else if(info.col.name == 'status' && result)
- {
- const rowData = info.row.data;
- if(rowData.status == 'wait') result[0].props.class = 'status-draft';
- }
- else if(info.col.name == 'actions' && result)
- {
- const group = info.row.data;
- if(group.projectModel == 'kanban')
- {
- result[0].props.items.map(item => {
- if(item.icon == 'design') item.hint = kanbanNotice;
- return item;
- });
- }
- }
- return result;
- };
|