Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
wiki:pager [2010/09/27 18:47]
marcus Added that if the string stop is returned from the function then the paging will be stopped
wiki:pager [2011/11/02 21:06]
conrad
Line 94: Line 94:
 |lastpage|integer|Readonly property. Determines the total number of pages returned from the request. |0|No| |lastpage|integer|Readonly property. Determines the total number of pages returned from the request. |0|No|
 |pager|mixed|Defines that we want to use a pager bar to navigate through the records. This must be a valid html element; in our example we gave the div the id of "​pager",​ but any name is acceptable. Note that the Navigation layer (the "​pager"​ div) can be positioned anywhere you want, determined by your html; in our example we specified that the pager will appear after the Table Body layer. The valid calls can be (using our example) '​pager',​ '#​pager',​ jQuery('#​pager'​). I recommend to use the second one.|empty string. Currently only one pagebar is possible.|No| |pager|mixed|Defines that we want to use a pager bar to navigate through the records. This must be a valid html element; in our example we gave the div the id of "​pager",​ but any name is acceptable. Note that the Navigation layer (the "​pager"​ div) can be positioned anywhere you want, determined by your html; in our example we specified that the pager will appear after the Table Body layer. The valid calls can be (using our example) '​pager',​ '#​pager',​ jQuery('#​pager'​). I recommend to use the second one.|empty string. Currently only one pagebar is possible.|No|
-|pagerpos|string| Determines the position of the pager in the grid. By default the pager element ​when created ​is divided ​in 3 parts (one part for pager, one part for navigator buttons and one part for record information)|center|No|+|pagerpos|string| Determines the position of the pager in the grid. By default, when the pager element is created it'​s ​divided ​into 3 parts (one part for pager, one part for navigator buttons and one part for record information)|center|No|
 |pgbuttons|boolean|Determines if the Pager buttons should be shown if pager is available. Also valid only if pager is set correctly. The buttons are placed in the pager bar. |true|No| |pgbuttons|boolean|Determines if the Pager buttons should be shown if pager is available. Also valid only if pager is set correctly. The buttons are placed in the pager bar. |true|No|
 |pginput|boolean|Determines if the input box, where the user can change the number of requested page, should be available. The input box appear in the pager bar. |true|No| |pginput|boolean|Determines if the input box, where the user can change the number of requested page, should be available. The input box appear in the pager bar. |true|No|
Line 117: Line 117:
 </​script>​ </​script>​
 </​code>​ </​code>​
 +
 ===== Events ===== ===== Events =====
  

QR Code
QR Code wiki:pager (generated for current page)