但是我试图根据第一列设置de pageLength参数,以获得类似的内容
到目前为止,我的数据表参数是:
var table = $('#table-comp').DataTable({
language:spanish,
columns: [
{
name: 'competencia',
title: 'Nombre de Competencia',
},
{
title: 'Grado Indicador',
},
{
title: 'Sel',
}
],
data: datos,
lengthChange: false,
searching: false,
pageLength: 6 //<--- Here is my problem. Not always is 6 fixed.
paging: true,
order: [],
rowsGroup: [
'competencia:name'
],
})
table.draw(false);
请帮助我!