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:
Mike Hatfield
2009-03-18 08:51:35 +00:00
parent b4758f446d
commit d1c25cb5be

View File

@@ -1,33 +1,31 @@
<#-- <#--
Renders paged results information.
Renders paged results information. The passed in data object should contain following attributes:
The passed in data object should contain following attributes: pageSize: the number of elements requested to be returned (forms part of the request)
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)
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
total: the total number of elements in the result set itemCount: the actual number of elements returned
itemCount: the actual number of elements returned items: the result elements
items: the result elements
Usage: Usage:
<#import "generic-paged-results.lib.ftl" as gen/> <#import "generic-paged-results.lib.ftl" as gen/>
{ {
<@gen.pagedResults data=data ; item> <@gen.pagedResults data=data ; item>
output of the individual item, for example by calling another macro: output of the individual item, for example by calling another macro:
<@yourLib.itemJSON item=item /> <@yourLib.itemJSON item=item />
</@gen.pagedResults> </@gen.pagedResults>
} }
--> -->
<#macro pagedResults data> <#macro pagedResults data>
"total" : ${data.total?c}, "total": ${data.total?c},
"pageSize" : ${data.pageSize?c}, "pageSize": ${data.pageSize?c},
"startIndex" : ${data.startIndex?c}, "startIndex": ${data.startIndex?c},
"itemCount" : ${data.itemCount?c}, "itemCount": ${data.itemCount?c},
"items": "items":
[ [
<#list data.items as item> <#list data.items as item>
<#nested item> <#nested item>
<#if item_has_next>,</#if> <#if item_has_next>,</#if>
</#list> </#list>
] ]
</#macro> </#macro>