Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Csv Button not showing Removed table tool references

$
0
0

Hi I have loaded my files in accordance to the layout here https://datatables.net/download/
I removed old references to table tools and obuttons and as you see I have the new buttons tag their ideally am wanting the html csv button but its not showing for me.

I cannot provide a link to a full example sorry.

AS per

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/2.0.0/css/buttons.jqueryui.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.jqueryui.css"/>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.0.0/js/dataTables.buttons.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.0.0/js/buttons.jqueryui.js"></script>
 <script type="text/javascript" src="https://cdn.datatables.net/buttons/2.0.0/js/buttons.html5.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.0.0/js/buttons.print.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.9/js/responsive.jqueryui.js"></script>

But for Some reason am still not getting my buttons to appear I only want the csv button to appear we are using ie 11 but still the buttons are not showing we need the sDom as well as we are placing a custom span there I removed info that could like it back to the code base below

var oTable = $('#tst').dataTable({  
    "dom": 'Bfrtip',
    "sDom": " custom span goes here",
    "bServerSide": false,
    "sAjaxSource": "Controler/Action/Method",
    "bProcessing": true,
    "bDeferRender": true,
    "iDisplayLength": 10,
    "bAutoWidth": false,
    "buttons": [ 'csv'],
    "oLanguage": {
        "sSearch": "Search:"
    }

});

Please I no above is not the normal way to initialize data tables its in the code base and cannot change it.


Viewing all articles
Browse latest Browse all 2364

Trending Articles