Responsive example Configuration option

The Responsive extension for DataTables can be applied to a DataTable in one of two ways; with a specific class name on the table, or using the DataTables initialisation options. This method shows the latter, with the responsiveR option being set to the boolean value true.

The responsiveR option can be given as a boolean value, or as an object with configuration options. If as a boolean, as in this case, the default options are used.

The Javascript shown below is used to initialise the table shown in this example:

1
2
3
4
5
$(document).ready(function() {
    $('#example').DataTable( {
        responsive: true
    } );
} );

In addition to the above code, the following Javascript library files are loaded for use in this example: