I am using
<ngx-datatable-column [flexGrow]="4" [sortable]="true" name="Name" prop="empName" [cellClass]="'text-left'" [headerClass]="'text-left'" [width]="450">
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
<span class="empName">{{value}}</span>
</ng-template>
</ngx-datatable-column>
ngOnInit() {
this.init();
}
init() {
this.fetchDetails();
}
fetchDetails() {
document.getElementsByClassName("sort-btn")[0].classList.add("datatable-iconCustom");
}
Here, the sorting icon is enabled when we click on header title. Is there a way to enable sorting icon by default at all times, not just on hover of title.