question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Data Table sorting arrows not changed

See original GitHub issue

Custom Data table sorting arrows are not changing, Good thing is sorting is working but arrows are not changing Here are the pictures Sort By asc

screenshot_order_asc

Sort By Desc

screenshot order_desc

Here is my code

`<table td-data-table #dataTable>

<th td-data-table-column *ngFor="let column of columns" [numeric]="column.numeric" 

[sortable]=“true” [sortOrder]=“columnSortOrders[column.name]” (sortChange)=“sort($event,column.name)”> {{column.label}}

<tbody>
  
    <tr td-data-table-row *ngFor="let row of filteredData; let index=index" on-mouseover="hoveredIndex=index">
        <td td-data-table-cell *ngFor="let column of columns" [numeric]="column.numeric">
            {{column.format ? column.format(row[column.name]) : row[column.name]}}
        </td>
        

    </tr>
</tbody>
`

What thing is wrong ? it should change the arrows also for Customs Data Table, We need Custom because we need to add custom buttons and menus

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aliabbas-2012commented, Jun 8, 2017

Sure tomorrow

Thanks

0reactions
aliabbas-2012commented, Jun 9, 2017

Many Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - DataTables jQuery - custom sort arrows - Stack Overflow
I'm trying to change the sort arrows on the jQuery version of DataTables (https://datatables.net/). I want to accomplish this without ...
Read more >
Missing Sort Arrows — DataTables forums
I have jquery.dataTables.css as my style sheet but don't have arrows for sorting. Sorting works by clicking on the columns, but where are...
Read more >
DataTable Sorting - Documentation - Webix
When you click on the header, DataTable starts to display arrows indicating which column the table is currently sorted by and the direction...
Read more >
How do I change the colour of the sort arrows? - Barn2 Plugins
To change the colour of the sort arrows in the table, you would need to create a new image (PNG file) for each...
Read more >
Datatable sort not working with custom data types
Did you implement the sorting logic on your side? Only setting sortable=true on the columns definition is not enough, that only lets you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found