Add a container for buttons

This commit is contained in:
James Polley 2018-08-01 02:33:14 +00:00
parent 26520868e0
commit 0b6d23dc33

View file

@ -67,20 +67,19 @@
"pageLength": 100,
"colReorder": true,
"buttons": [{
extend: 'collection',
text: 'Export',
buttons: ["copy", "csv", "print"]
},
{ extend: 'collection',
text: 'Columns',
buttons: [
{ extend: 'columnsToggle',
columns: '.toggle' },
{ extend: 'columnToggle',
text: 'Vote details',
columns: '.votes'
}
]
}]});
extend: 'collection',
text: 'Export',
buttons: ["copy", "csv", "print"]
},
{ extend: 'collection',
text: 'Columns',
buttons: [
{ extend: 'columnsToggle',
columns: '.toggle' },
{ extend: 'columnToggle',
text: 'Vote details',
columns: '.votes'
}]}]});
table.buttons().container().appendTo( $('.col-sm-6:eq(0)', table.table().container() ) );
</script>
{% endblock %}