-
-
Save bradfordbradford/2c37f4ab00b9b643e070 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var table_b = $('#table-b') | |
.dataTable({ | |
responsive: true, | |
stateSave: true, | |
"pagingType": "simple", | |
"dom": '<"top"<"form-row"f><"form-row"<"left"l><"right paginate-button-group"ip>>>', | |
"language": { | |
"search": "<span class='search-label'>Search</span> _INPUT_ " | |
}, | |
"oLanguage": { | |
"oPaginate": { | |
"sNext": "<span class='on-right' data-icon='c'></span>", | |
"sPrevious": "<span class='on-left' data-icon='d'></span>" | |
} | |
} | |
}) | |
.columnFilter( | |
{ | |
(bla,bla…) | |
}); | |
// API | |
var api = table_b.api(); | |
// Trying to Incorporate This: | |
// Toggle Column Visibility | |
$('.toggle-vis input').on('ifClicked', function(event){ | |
var column = table_b.column( $(this).attr('data-column') ); | |
column.visible( ! column.visible() ); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment