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

Add support for top pager

Open benjamin0101 opened this issue 11 years ago • 5 comments

Moving to angular from jquery and replacing jqgrid which had support for top pager.

Basically it is a configuration option that allows the pager to be displayed at the top of the grid also.

Could someone point me in the right direction on how to do this? With some direction I'm interested in contributing this feature.

Proposal

Additions to GridOptions

Properties

  • topPager - enables top pager (defaults to false to preserve backwards compatibility)

benjamin0101 avatar Jan 01 '15 09:01 benjamin0101

I think @brianchance has done most of the work on paging, he would probably have an opinion and guidance on how to go about it.

PaulL1 avatar Jan 01 '15 19:01 PaulL1

Playing around with it, if you prepend instead of append in the uiGridPaging directive, then remove the absolute positioning and top/bottom, and it works.

When at the top, the .ui-grid-pager-panel needs a clearfix so it has height, not sure how that should be handled without creating dependencies.

Looks like it will need a border bottom since the header relies on the outer border for framing.

brianchance avatar Jan 02 '15 14:01 brianchance

@brianchance thanks for some guidance. can you elaborate more on your dependencies comment?

benjamin0101 avatar Jan 11 '15 22:01 benjamin0101

The pager panel needs a clearfix, I use bootstrap which has the class defined. Relying on bootstrap would be a dependency.

brianchance avatar Jan 12 '15 14:01 brianchance

This feature is not working, what was the resolution for this?

euvin3582 avatar Mar 07 '16 16:03 euvin3582