Closed pdore-netfore closed 8 years ago
Seems to be an issues with the use of ng-repeat to populate the th's
I don't think this plays nice with ng-repeat
. #2
If you make a Codepen I'll take a look at it. You can fork the Codepen from the demo, it already uses the data table. Otherwise you may not be able to use ng-repeat
within the header.
Without fix-head http://codepen.io/pdore/pen/XdmeVr?editors=101
With fix-head http://codepen.io/pdore/pen/qZOPxN?editors=101
ng-repeat
should work now, I've also published this to bower and npm.
I have an md-data-table:
To add a fixed header, I've added
fix-head
to the<thead>
element and giving the<md-table-container>
a fixed height and overflow.White-space shows above the table on initial load and the header doesn't stick when scrolling.
Please help!