Fórum
Liferay7: Scroll with paginator in YUI3 datatable
Pikachu kute, modificado 7 Anos atrás.
Liferay7: Scroll with paginator in YUI3 datatable
New Member Postagens: 13 Data de Entrada: 09/03/17 Postagens Recentes
Hi all,
I use YUI 3 library for datatable, i want my table can scroll and paginator, but when i scroll table, it also scroll paginator.
Please help me fix it. Thanks
Here is my code:
I use YUI 3 library for datatable, i want my table can scroll and paginator, but when i scroll table, it also scroll paginator.
Please help me fix it. Thanks
Here is my code:
YUI().use('datatable','datatable-paginator','datatable-scroll', function (Y) {
var table = new Y.DataTable({
data: results.data,
caption: "Test DataTable",
sortable: true,
scrollable: "y",
height: "300px",
width: "1000px",
pageSizes: [4, 5, 'all'],
rowsPerPage: 4,
pageLinks: 4
});
table.render("#testDataTable");
})