[fix] sortIndicator

This commit is contained in:
Faris Ansari 2018-05-23 18:14:50 +05:30
parent faeef3856c
commit b61f7fdcab

View File

@ -739,7 +739,11 @@ export default class CellManager {
const editCellHTML = editable ? this.getEditCellHTML(colIndex) : '';
const sortable = isHeader && cell.sortable !== false;
const sortIndicator = sortable ? '<span class="sort-indicator"></span>' : '';
const sortIndicator = sortable ?
`<span class="sort-indicator">
${this.options.sortIndicator[cell.sortOrder]}
</span>` :
'';
const resizable = isHeader && cell.resizable !== false;
const resizeColumn = resizable ? '<span class="dt-cell__resize-handle"></span>' : '';