Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() {
- var table = $('#dtTable').DataTable( {
- lengthChange: true,
- lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, "All"] ],
- buttons: [{
- text: 'New Category',
- action: function ( e, dt, node, config ){
- location.href = 'category/cat_crud';
- }
- },
- 'excel', 'colvis'
- ],
- //buttons: [ 'copy', 'excel', 'pdf', 'colvis']
- } );
- table.buttons().container()
- .appendTo('#dtTable_wrapper .col-sm-6:eq(0)');
- } );
- </script>
Add Comment
Please, Sign In to add comment