1 [% USE ColumnsSettings %]
3 <script type="text/javascript">
4 function KohaTable(selector, dt_parameters, columns_settings) {
8 $(columns_settings).each( function() {
9 if ( this['is_hidden'] == "1" ) {
10 hidden_ids.push( id );
12 if ( this['cannot_be_toggled'] == "1" ) {
13 excluded_ids.push( id );
17 dt_parameters[ "oColVis" ] = { "aiExclude": excluded_ids };
18 var table = $(selector).dataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
20 $(hidden_ids).each(function(index, value) {
21 table.fnSetColumnVis( value, false );