Foren

Alloyui Tree view with pagination

kushnoor patan, geändert vor 6 Jahren.

Alloyui Tree view with pagination

New Member Beiträge: 12 Beitrittsdatum: 07.05.17 Neueste Beiträge
Dear team,
I need help in displaying Alloyuii treeview as pagination.
I want to display my tree view with 10 records then if more than 10 I want user to click on link and then load the other data.
Please see the same in attachment
var PAGINATOR_CONFIG = {
limit: 5,
limitParam: 'start',
offsetParam: 'end',
start: 1,
total: arrName.length,
moreResultsLabel: arrOwner

};
YUI().use(
'aui-tree-view',
function(Y) {
new Y.TreeView(
{
boundingBox: '#myTreeView',
type:'normal',
children: [
{
children: arrName,
paginator: PAGINATOR_CONFIG,
expanded: false,
label: 'Name'
},
{
children: arrOwner,
expanded: false,
label: 'Owner',
type: 'task'
},
]
}
).render();
}
);