Sorting not working on using 'Template', 'Flex', on using flex for column, resizing is an issue
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior
Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Table version: 7.3.0
- Angular version: 4.0.2
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Ordering flex items - CSS: Cascading Style Sheets | MDN
Items have a number showing their source order which has been rearranged. You can play around with the values in this live example...
Read more >Flexbox won't wrap on browser resize - Stack Overflow
In your CSS, I changed your animation with a more simple opacity and translateY transition (you have to go to point A to...
Read more >Equal Columns With Flexbox: It's More Complicated Than You ...
This happens because of how flexbox calculates the base size of an element. You've probably read lots of flexbox tutorials, and many of...
Read more >A Comprehensive Guide to Flexbox Ordering & Reordering
A Comprehensive Guide to Flexbox Ordering & Reordering ... The flexbox layout module allows us to lay out flex items in any order...
Read more >Column Resizing: Core Feature of our Datagrid - AG Grid
If you manually resize a column with flex either via the API or by dragging the resize handle, flex will automatically be disabled...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Make sure you put
let-sort="sortFn"
in your ng-template and make sure to encapsulate your content in a class with a span<span (click)="sort()">Your Content here </span>
This was the case for me. Here’s a full code example of my column template:
<ngx-datatable-column name="Description"> <ng-template let-column="column" let-sort="sortFn" ngx-datatable-header-template> <span (click)="sort()">Your Content Here</i></span>Beschrijving </ng-template> </ngx-datatable-column>
Any updates on the sorting for a custom Template? I found if I add a font-awesome icon as the content to a sort-btn class it will work, but I don’t want a sort for all tables. Adding sortable:false does not change this.