Opened 11 years ago

Closed 11 years ago

#500 closed new feature (fixed)

pagination widget: class ItemlistWithPagination

Reported by: lemon-head Owned by: lemon-head
Priority: major Milestone: Rox Framework
Component: FrameWork Keywords: pagination, widget


This nice thing will provide easy pagination for pages such as forum boards or threads, lists of messages in mailbox, etc.

How to use: Make a subclass of ItemlistWithPagination?, override some of the methods with your own custom functionality, then use

  • $widget->showPagination() to show the pagination links
  • $widget->needsPagination() to see if it actually needs pagination links
  • $widget->render() to show the list of items (forum posts, messages, whatever)

The widget extends from ItemlistWidget?, which provides a customizable table structure. You can choose between the default html table, floating tables (which still need to be backed up by css), and a boring list of div containers. You can override methods to customize the table columns, and to provide the widget with a list of items to display in the table rows.

I will not write more here, because I can't change it later.

Change History (4)

comment:1 Changed 11 years ago by lemon-head

  • follow_up changed from none to test
  • Owner set to lemon-head
  • Status changed from new to assigned

hehe, I forgot to say, we already HAVE the pagination widget :)

We can see it in action in the new messages application,[[BR]] but it should also work for forums, or other things (once we have refactored the forum).

comment:3 Changed 11 years ago by lemon-head

  • Milestone changed from unassigned to Rox Framework

comment:4 Changed 11 years ago by lemon-head

  • follow_up changed from test to none
  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.