GithubHelp home page GithubHelp logo

Comments (31)

theaspect avatar theaspect commented on July 18, 2024 1

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.

esvit avatar esvit commented on July 18, 2024

No, i don't know how do this and i haven't plan do this feature. It is not easy functionality

from ng-table.

rconrad avatar rconrad commented on July 18, 2024

+1, this functionality would make ngTables so incredible compared to ng-grid or others that try to do the same.

from ng-table.

jack-kerouac avatar jack-kerouac commented on July 18, 2024

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.

Diego81 avatar Diego81 commented on July 18, 2024

+1

from ng-table.

benn0r avatar benn0r commented on July 18, 2024

+1

from ng-table.

pursual avatar pursual commented on July 18, 2024

+1

from ng-table.

lyon-liao avatar lyon-liao commented on July 18, 2024

+1

from ng-table.

jvanderbiest avatar jvanderbiest commented on July 18, 2024

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.

wherpoelaert avatar wherpoelaert commented on July 18, 2024

+1

from ng-table.

divramod avatar divramod commented on July 18, 2024

+1

from ng-table.

terencevs avatar terencevs commented on July 18, 2024

+1

from ng-table.

gitnik avatar gitnik commented on July 18, 2024

+1

from ng-table.

lee-40square avatar lee-40square commented on July 18, 2024

+1

from ng-table.

brunoosilva avatar brunoosilva commented on July 18, 2024

+1

from ng-table.

 avatar commented on July 18, 2024

+1

from ng-table.

andrewboni avatar andrewboni commented on July 18, 2024

Definitely +1 on this

from ng-table.

arthur-kv avatar arthur-kv commented on July 18, 2024

+1

from ng-table.

anthony-o avatar anthony-o commented on July 18, 2024

+1

from ng-table.

lindelleric avatar lindelleric commented on July 18, 2024

+1

from ng-table.

dmoskovtsov avatar dmoskovtsov commented on July 18, 2024

+1

from ng-table.

schmidtl avatar schmidtl commented on July 18, 2024

+1

from ng-table.

incadoi avatar incadoi commented on July 18, 2024

+1

from ng-table.

sagarbhosale91 avatar sagarbhosale91 commented on July 18, 2024

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.

RomainGx avatar RomainGx commented on July 18, 2024

+1

from ng-table.

sagarbhosale91 avatar sagarbhosale91 commented on July 18, 2024

Resolved with accordain ... Demo 👍 http://plnkr.co/edit/D5XxfgH79bR2wVDhPlku?p=preview

from ng-table.

corbinolds avatar corbinolds commented on July 18, 2024

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.

devLaaziz avatar devLaaziz commented on July 18, 2024

+1

from ng-table.

lessu avatar lessu commented on July 18, 2024

+1

from ng-table.

SmallDev avatar SmallDev commented on July 18, 2024

+1

from ng-table.

chrispyliang avatar chrispyliang commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.