angular2-grid icon indicating copy to clipboard operation
angular2-grid copied to clipboard

Column header support

Open jayhamilton opened this issue 8 years ago • 2 comments

How do you add column headers?

jayhamilton avatar Mar 21 '16 17:03 jayhamilton

At the moment, there is no header support. That would only work with a fixed number of columns anyway. What you can do, though, is to add an NgGridItem for each header, set the col value to the respective column and set fixed to true. That should create fixed items at the top of each column and prevent them from being moved.

BTMorton avatar Mar 21 '16 20:03 BTMorton

Ok, thanks for the suggestion. Implementing your suggestion did not give me the flexibility of having a specific height for the header row without jumping through css hoops. I elected to create another grid as a header with the row height and min height to my liking.

jayhamilton avatar Mar 22 '16 00:03 jayhamilton