Scroller without scrollY

Is it possible to use the datatables scroller plugin without the specified scroll?

$('#table').DataTable({
    serverSide: true,
    ajax: '/besom/entity/websearch/list/ajax',
    columns: [
        { data: 'id' },
        { data: 'query' },
        { data: 'resultLimit' },
        { data: 'created' },
        { data: 'success' },
        { data: 'performed' } ],
//      language: { "loadingRecords": "loading data..." },
    scrollY: 400,
    lengthChange: false,
    deferRender: true,
    scroller: {
//  loadingIndicator: true,
//  displayBuffer: 20
    },
//  scrollCollapse: true
})

If I comment on the scroll, this.dom.scroller undefined error will occur. Is this data behavior correct? My example data:

{"draw":0,"recordsTotal":184227,"recordsFiltered":184227,"data": [
{"id":4,"resultLimit":100,"query":" ","site":"facebook.com","startIndex":91,"success":true,"created":1428769822000,"performed":1433538000000},
{"id":5,"resultLimit":100,"query":"product","site":"facebook.com","startIndex":91,"success":true,"created":1428769822000,"performed":1433538000000}],
"error":null}

Is this another way or workaround to allow endless scrolling through the browser’s main scroll bar?

+4
source share

Source: https://habr.com/ru/post/1614954/


All Articles