File: demos/startbootstrap-sb-admin-2/bower_components/datatables-responsive/examples/initialisation/new.xml

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   demos/startbootstrap-sb-admin-2/bower_components/datatables-responsive/examples/initialisation/new.xml   Download  
File: demos/startbootstrap-sb-admin-2/bower_components/datatables-responsive/examples/initialisation/new.xml
Role: Example script
Content type: text/plain
Description: Example script
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/startbootstrap-sb-admin-2/bower_components/datatables-responsive/examples/initialisation/new.xml
Date: 2 years ago
Size: 939 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8" ?> <dt-example table-type="html-wide" table-class="display nowrap" order="3"> <css lib="datatables responsive"> div.container { max-width: 1200px } </css> <js lib="jquery datatables responsive"> <![CDATA[ $(document).ready(function() { var table = $('#example').DataTable(); new $.fn.dataTable.Responsive( table ); } ); ]]> </js> <title lib="Responsive">`new` constructor</title> <info><![CDATA[ Responsive will automatically detect new DataTable instances being created on a page and initialise itself if it finds the `r-init responsive` option or `responsive` class name on the table, as shown in the other examples. The third way of initialising Responsive is manually creating a new instance using the `$.fn.dataTable.Responsive` class, as shown in this example (the other two methods are provided using this constructor in a `dt-event init` event handler!). ]]></info> </dt-example>