Paging"
m (→Use cases) |
Tmillsclare (talk | contribs) m (→Use cases) |
||
Line 47: | Line 47: | ||
! Version !! Description !! Example Location | ! Version !! Description !! Example Location | ||
|- | |- | ||
− | | 3.6 | + | | 3.6 |
| Smalltalk: Paging Sorting with a filter object | | Smalltalk: Paging Sorting with a filter object | ||
| [http://docs.zkoss.org/wiki/Paging_Sorting_with_a_filter_object http://docs.zkoss.org/wiki/Paging_Sorting_with_a_filter_object] | | [http://docs.zkoss.org/wiki/Paging_Sorting_with_a_filter_object http://docs.zkoss.org/wiki/Paging_Sorting_with_a_filter_object] | ||
|- | |- | ||
− | | 3.6 | + | | 3.6 |
| Live Data | | Live Data | ||
| [http://docs.zkoss.org/wiki/Live_Data,_Paging,_setModel_and_Implement_your_own_renderer http://docs.zkoss.org/wiki/Live_Data,_Paging,_setModel_and_Implement_your_own_renderer] | | [http://docs.zkoss.org/wiki/Live_Data,_Paging,_setModel_and_Implement_your_own_renderer http://docs.zkoss.org/wiki/Live_Data,_Paging,_setModel_and_Implement_your_own_renderer] |
Revision as of 02:36, 14 May 2010
Paging
- Demonstration: Paging (with Grid), Paging (with Listbox), Paging (with Tree)
- Java API: Paging
- JavaScript API: Paging
Employment/Purpose
A paging component is used to separate long content into multiple pages. For example, assume that you have 100 items and prefer to show 20 items at a time, then you can use the paging components as follows.
Then, when a user clicks on the hyperlinks, the onPaging event is sent with an instance of org.zkoss.zul.event.PagingEvent to the paging component. To decide which portion of your 100 items are visible, you shall add a listener to the paging component.
The listbox and grid component support the paging intrinsically, so you don't need to specify a paging component explicitly as above, unless you want to have different visual layout or to control multiple listbox and grid with one paging component.
Example
<vbox>
<paging totalSize="100" pageSize="20"/>
</vbox>
Supported events
PagingEvent
Description: Notifies one of the pages of a multi-page component is selected by the user. |
Supported Children
*NONE
Use cases
Version | Description | Example Location |
---|---|---|
3.6 | Smalltalk: Paging Sorting with a filter object | http://docs.zkoss.org/wiki/Paging_Sorting_with_a_filter_object |
3.6 | Live Data | http://docs.zkoss.org/wiki/Live_Data,_Paging,_setModel_and_Implement_your_own_renderer |
Version History
Version | Date | Content |
---|---|---|
5.0.1 | 4/27/2010 | Initialization |