Add a container for buttons
This commit is contained in:
parent
26520868e0
commit
0b6d23dc33
1 changed files with 14 additions and 15 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue