-
Notifications
You must be signed in to change notification settings - Fork 15
/
PaginationTable.vfp
34 lines (28 loc) · 1.45 KB
/
PaginationTable.vfp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- Pagintation -->
<table style="width: 100%"><tr>
<td>
Page: <apex:outputText value=" {!PageNumber} of {! CEILING(ResultSize / PageSize)}"/>
</td>
<td align="center">
<!-- Previous page -->
<!-- active -->
<apex:commandLink action="{! Previous }" value="<< Previous" rendered="{! HasPrevious }" />
<!-- inactive (no earlier pages) -->
<apex:outputText style="color: #ccc;" value="<< Previous" rendered="{! NOT(HasPrevious) }" />
<!-- Next page -->
<!-- active -->
<apex:commandLink action="{! Next }" value="Next >>" rendered="{! HasNext }" />
<!-- inactive (no more pages) -->
<apex:outputText style="color: #ccc;" value="Next >>" rendered="{! NOT(HasNext) }" />
</td>
<td align="center">
<!-- Records per page -->
Records per page:
<apex:selectList value="{! PageSize }" size="1">
<apex:selectOption itemValue="5" itemLabel="5" />
<apex:selectOption itemValue="20" itemLabel="20" />
<apex:actionSupport event="onchange" reRender="contacts_list" />
</apex:selectList>
</td>
</tr></table>