mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Further fix for ETHREEOH-1661 - Links Paginator not responding to click events
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,33 +1,31 @@
|
||||
<#--
|
||||
|
||||
Renders paged results information.
|
||||
The passed in data object should contain following attributes:
|
||||
pageSize: the number of elements requested to be returned (forms part of the request)
|
||||
startIndex: the index of the first element to be returned (forms part of the request)
|
||||
total: the total number of elements in the result set
|
||||
itemCount: the actual number of elements returned
|
||||
items: the result elements
|
||||
|
||||
Renders paged results information.
|
||||
The passed in data object should contain following attributes:
|
||||
pageSize: the number of elements requested to be returned (forms part of the request)
|
||||
startIndex: the index of the first element to be returned (forms part of the request)
|
||||
total: the total number of elements in the result set
|
||||
itemCount: the actual number of elements returned
|
||||
items: the result elements
|
||||
|
||||
Usage:
|
||||
<#import "generic-paged-results.lib.ftl" as gen/>
|
||||
{
|
||||
<@gen.pagedResults data=data ; item>
|
||||
output of the individual item, for example by calling another macro:
|
||||
<@yourLib.itemJSON item=item />
|
||||
</@gen.pagedResults>
|
||||
}
|
||||
|
||||
<#import "generic-paged-results.lib.ftl" as gen/>
|
||||
{
|
||||
<@gen.pagedResults data=data ; item>
|
||||
output of the individual item, for example by calling another macro:
|
||||
<@yourLib.itemJSON item=item />
|
||||
</@gen.pagedResults>
|
||||
}
|
||||
-->
|
||||
<#macro pagedResults data>
|
||||
"total" : ${data.total?c},
|
||||
"pageSize" : ${data.pageSize?c},
|
||||
"startIndex" : ${data.startIndex?c},
|
||||
"itemCount" : ${data.itemCount?c},
|
||||
"items":
|
||||
[
|
||||
<#list data.items as item>
|
||||
<#nested item>
|
||||
<#if item_has_next>,</#if>
|
||||
</#list>
|
||||
]
|
||||
"total": ${data.total?c},
|
||||
"pageSize": ${data.pageSize?c},
|
||||
"startIndex": ${data.startIndex?c},
|
||||
"itemCount": ${data.itemCount?c},
|
||||
"items":
|
||||
[
|
||||
<#list data.items as item>
|
||||
<#nested item>
|
||||
<#if item_has_next>,</#if>
|
||||
</#list>
|
||||
]
|
||||
</#macro>
|
||||
|
Reference in New Issue
Block a user