| |||||||
FRAMES NO FRAMES |
<select>
<pt:searchpage.itemsperpagedata pt:id="pageSize"/>
<pt:core.comment>This collection contains the page size list meta-data.</pt:core.comment>
<pt:logic.collection pt:key="pagesizes">
<pt:logic.data size="10"/>
<pt:logic.data size="20"/>
</pt:logic.collection>
<pt:logic.foreach pt:data="pagesizes" pt:var="thissize">
<pt:logic.intexpr pt:expr="($pageSize.selectedValue) == ($thissize.size)" pt:key="selectedOption"/>
<pt:logic.if pt:expr="$selectedOption">
<pt:logic.iftrue><pt:core.html pt:tag="option" selected value="$thissize.size">
<pt:logic.value pt:value="$thissize.size"/>
</pt:core.html></pt:logic.iftrue>
<pt:logic.iffalse><pt:core.html pt:tag="option" value="$thissize.size">
<pt:logic.value pt:value="$thissize.size"/>
</pt:core.html></pt:logic.iffalse>
</pt:logic.if>
</pt:logic.foreach>
</select>
Tag Information | |
Tag Name | itemsperpagedata |
Attributes | ||||
Name | Type | Required | Default Value | Description |
id | string | true | null | The name of the variable in memory where the DO data created by this tag is stored. Specify this ID in the data attribute (most commonly the DATAVAR attribute) for any display tag consuming DO data. Multiple data tags can share the same ID, in which case they are added to a list in the order they were processed. The following attribute is added to this Data Object: selectedValue - The value of the currently selected page size or -1 if none is selected. |
scope | string | false | portlet request | The scope used to store the data. See the Logic tag library for a list of all available scopes. |
onchange | string | false | changeItemsPerPage | The onchange function name that triggers the change of page size. Requires the new value as a parameter. |
| |||||||
FRAMES NO FRAMES |