Phui Grid and Paginator Widget

19 March 2010 by moschel

I just put together a Grid and Paginator widget for Phui that supports the following features in a scant 200 lines of code:

  • Pagination - The Grid can respond (listen to) multiple pagination widgets in and outside the Grid widget.
  • Table Best Fit - A lot of grids force you into fixed with. Phui Grid allows the table to do a “best fit” while keeping room for column headers.
  • Column resizing - Resize your columns, but not the table.
  • Column multi-sorting - Sort your columns.
  • Independent column headers - Column headers stay over their column data when the grid is horizontally scrolled.

Grid

You can find the grid and paginator code in the phui repository. It’s very likely I will add the following other features:

  • Arrangeable columns
  • Keyboard navigation
  • Grouping support

Stay tuned for a demo page. There’s so much good stuff in Phui, it’s going to take me forever to let everyone know about it.