Configure Datatable’s sZeroRecord parameter but without paging

Asked

Viewed 791 times

2

I’m using the function DataTable:

"oLanguage": {
                "sZeroRecords": "Não há registros para mostrar"
            }
        });

But on my screen appears the export buttons, paging without I have configured these options... In case I’d just like to use sZeroRecords without the other options, I can do it?

1 answer

2


Paging Description

Datatables can split the Rows in Tables into individual pages, which is an Efficient method of Showing a large number of Records in a small space. The end user is provided with Controls to request the display of Different data as the navigate through the data. This Feature is enabled by default, but if you Wish to disable it, you may do so with this Parameter.

According to the documentation, if you do not set anything, the pattern is true, that is, you will have pagination (as described above) and other forms also by default. To disable some Features, see an example:

$('#example').DataTable( {
    paging: false,    // desativa paginação 
    ordering: false, //desativa ordenação no cabeçalho
    searching: false // desativa a pesquisa no topo
} );

See an example in the documentation itself here

References:

https://www.datatables.net/manual/options

https://datatables.net/reference/option

Browser other questions tagged

You are not signed in. Login or sign up in order to post.