Comments (31)
Whoever find this, use https://github.com/jmosbech/StickyTableHeaders works out of the box with this directive:
.directive "stickyHeader", ["$timeout", ($timeout)->
restrict: 'A'
link: (scope, element, attrs) ->
$timeout(() -> $(element).stickyTableHeaders())
]
from ng-table.
No, i don't know how do this and i haven't plan do this feature. It is not easy functionality
from ng-table.
+1, this functionality would make ngTables so incredible compared to ng-grid or others that try to do the same.
from ng-table.
I am specifically looking for this feature. I found an (ugly) way to make it work with ng-grid. Angular-table supports it out of the box.
This would be a great feature, though I acknowledge that it is not easy.
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
I've implemented this using a jquery plugin (https://github.com/jmosbech/StickyTableHeaders).
There is a plunkr here: http://plnkr.co/edit/KyilXo?p=preview
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
Definitely +1 on this
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
I'm using angular js ng-table to display some information. I would like to make the header of the ng-table fixed with scroll bar.Moreover I need to place one accordion just before the ng-table.
When I collapse the accordion my ng-table fixed header does not work properly. Please refer plunker I have created : http://plnkr.co/edit/FGjU46cCMuhIdyacffHl?p=preview
from ng-table.
+1
from ng-table.
Resolved with accordain ... Demo 👍 http://plnkr.co/edit/D5XxfgH79bR2wVDhPlku?p=preview
from ng-table.
The plugin works fine for keeping the header in place, but when resizing the page, the header retains the same width until the page is refreshed or the table is scrolled back to the top.
When looking at the accordion plunker, when i scroll down in the table and resize the page width, the header keeps the same size it had as when the page wasn't resized. http://plnkr.co/edit/FGjU46cCMuhIdyacffHl?p=preview
from ng-table.
+1
from ng-table.
+1
from ng-table.
+1
from ng-table.
here is an approach with pure css
tbody {
max-height: 200px;
overflow-y: scroll;
display: block;
}
thead, tbody tr {
display: table;
width: 100%;
table-layout: fixed;
}
from ng-table.
Related Issues (20)
- Trigger getDAta on click NOT on key press HOT 1
- hai, i could not able to do any functionalities in ng table (sorting, pagination,filter) how to i work,
- Having ng-table as element directive with child element as table HOT 1
- Having ng-table as element directive with child element as table
- data loading animation while waiting data to be fetched from server HOT 1
- error TS2688: Cannot find type definition file for 'angular-mocks' HOT 1
- ng-table watchs isDataReloadRequired() erroneously
- Load Filter options dynamically
- Add range slider and selectize filters HOT 1
- How to get table row in controller? HOT 1
- 'Real world example' is simple demo
- Error on PlaceHolde on Filter
- Do you have plans to migrate ng-table to Angular X? HOT 1
- Custom sorting property for groups
- Number of displayed rows is limited by number of columns in ng-table-dynamic HOT 1
- Does not compile
- Demo site ng-table.com broken when using https HOT 1
- Ngtable - data show hide columsn
- not sorting polish alphabet
- angularjs ngTable pagination showing all the results in a single page and data is loading every time on same page using API calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-table.