UNPKG

patternfly

Version:

This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.

27 lines (18 loc) 924 B
<?xml version="1.0" encoding="UTF-8" ?> <dt-example table-type="html" order="2"> <css lib="datatables colvis" /> <js lib="jquery datatables colvis"> <![CDATA[ $(document).ready(function() { var table = $('#example').DataTable(); var colvis = new $.fn.dataTable.ColVis( table ); $( colvis.button() ).insertAfter('div.info'); } ); ]]> </js> <title lib="ColVis">`new` initialisation</title> <info><![CDATA[ As well as providing the option to be initialised through the `C` option of `dt-init dom`, ColVis can also be added to a DataTable using direct initialisation - `new $.fn.dataTable.ColVis();` as shown in this example. The ColVis control button it available through its `button()` method, which can then be used to attach to the document where you need. For full information about the ColVis API, please refer to the [ColVis API documentation](//datatables.net/extensions/colvis/api). ]]></info> </dt-example>