Thursday, February 28, 2013
[Update : Have a look at awesome new PageblockTable Enhancer Component here]
Well I am really happy that finally my work on Enhanced Pageblocktable is almost complete.The Sortable Pageblocktable component is now Enhanced Pageblock table with added functionality of pagination , athough the Sortable Pageblocktable component still exists.
Now you can add functionality like pagination, sorting without any extra coding.The component uses the jQuery table sorter plugin to add the sorting and pagination features to the page block tables.
Features of Enhanced Pageblock Table
- Sorting : Supports sorting of columns by clicking at the column header.
- Pagination : Supports client side pagination of the table.
- Native Look And Feel : Enhanced Pageblock table component uses the similar look and feel of a standar pageblock table and mixes with the existing UI easily.
How to use?
Pretty Simple!, just use the below code.
Parameters
sObjList : List of sObject To display
fieldList : List of field API names to display in the table as column.
sObjList : List of sObject To display
fieldList : List of field API names to display in the table as column.
<c:EnhancedPageBlockTable sObjList="{!accounts}" fieldList="{!fields}"/>
Demo
http://blogforce9dev-developer-edition.ap1.force.com/EnhancedPageBlockTableDemo
Codebase
Unmanaged Package: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t90000000MIJ3