cornflourblue / angu-fixed-header-table

AngularJS fixed header scrollable table directive
http://pointblankdevelopment.com.au/blog/angularjs-fixed-header-scrollable-table-directive
MIT License
67 stars 43 forks source link

Fixed First Column #4

Closed jayachristina closed 1 year ago

jayachristina commented 10 years ago

Hi, is there a way to fix the first column (in addition to the top row)? Thanks Jaya

monsoul commented 10 years ago

@jayachristina hey, have you find a directive to solve this problem?

cornflourblue commented 10 years ago

I think having a fixed first column means the first column isn't really part of the tabular data, because the first column would have a different number of rows to the rest of the table. I'd suggest maybe creating an absolutely positioned div containing what you want in the first column and putting it to the left of your table to get the effect you're after.

monsoul commented 10 years ago

@cornflourblue I use this function few months ago , but if the first column has too many rows you need to do something to make their scrolling in the same time then it works not well. so I try to find out an other solution . thank you.

jayachristina commented 10 years ago

Having another table with just the first column, fix the table height. And listen to the scroll event of the second TABLE, which scrolls the first table. I have a plunkr I think. Will send it across On Oct 31, 2014 5:14 PM, "Jason Watmore" notifications@github.com wrote:

I think having a fixed first column means the first column isn't really part of the tabular data, because the first column would have a different number of rows to the rest of the table. I'd suggest maybe creating an absolutely positioned div containing what you want in the first column and putting it to the left of your table to get the effect you're after.

— Reply to this email directly or view it on GitHub https://github.com/cornflourblue/angu-fixed-header-table/issues/4#issuecomment-61249281 .

jayachristina commented 10 years ago

Having another table with just the first column, fix the table height. And listen to the scroll event of the second row, which scrolls the first table. I have a plunkr I think. Will send it across On Oct 31, 2014 5:54 PM, "monsoul" notifications@github.com wrote:

@cornflourblue https://github.com/cornflourblue I use this function few months ago , but if the first column has too many rows you need to do something to make their scrolling in the same time then it works not well. so I try to find out an other solution . thank you.

— Reply to this email directly or view it on GitHub https://github.com/cornflourblue/angu-fixed-header-table/issues/4#issuecomment-61252822 .