Disable Sort icon in DataTable Thead
mzcoder-hub opened this issue · comments
Galang Yoga Pradana commented
how to disable the sort icon in yajra ? i do using css like
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
background: none;
}
but the icon https://prnt.sc/SVB63WtQJQ-m
still show up
Galang Yoga Pradana commented
well i solve my own case so
i use this css
.dataTable>thead>tr>th[class*="sort"]:after {
content: "" !important;
}
.dataTable>thead>tr>th[class*="sort"]:before {
content: "" !important;
}
table.dataTable thead>tr>th.sorting_asc,
table.dataTable thead>tr>th.sorting_desc,
table.dataTable thead>tr>th.sorting,
table.dataTable thead>tr>td.sorting_asc,
table.dataTable thead>tr>td.sorting_desc,
table.dataTable thead>tr>td.sorting {
padding-right: inherit;
}