| |||||||
FRAMES NO FRAMES |
<script>
var jsdata = <pt:ptdata.jsarraydataformat pt:data="hierdatavar" pt:props="title,url,currpage,img" />;
</script>
Output:
var jsdata = {
title:'Page 1', url:'http://server/portal/server.pt/community/Community_1', img:'http://imgsrv/img.gif'
children:[ { title:'Page 1', url:'http://server/portal/server.pt/community/Community_2/page_1', img:'http://imgsrv/img.gif' } ]
{title:'Page 2', url:'http://server/portal/server.pt/community/Community_2/page_2', img:'http://imgsrv/img.gif'}
Tag Information | |
Tag Name | jsarraydataformat |
Attributes | ||||
Name | Type | Required | Default Value | Description |
data | string | true | null | Reference to tag variable with data to be converted |
scope | string | false | portlet request | The scope of the tag variable referenced in the data attribute. |
childkey | string | false | null | Hierarchical child key if different from default. |
props | string | true | null | A comma separated string with data properties to include in the javascript array. |
| |||||||
FRAMES NO FRAMES |