I use the Jquery JTable table, and I want to know how the column is hidden:
Table:
$('#miTabla').jtable({
title : 'Datos Detalle',
paging : true,
pageSize : 10,
pageList : 'minimal',
saveUserPreferences : true,
jqueryuiTheme: true,
messages : {
noDataAvailable: 'No hay datos disponibles!',
addNewRecord: 'Añade detalle',
editRecord: 'Edita detalle',
save: 'Guardar'
},
actions : {
listAction: 'listDetailAction'
},
fields : {
idDetalle : {
title : "Id Detalle",
key : true,
list : false
},
detalle : {
title : 'Concepto',
width: '33%'
},
descripcion : {
title : 'Descripción',
width: '33%'
}
}
});
According to the official documentation : There is the changeColumnVisibility(columnName, visibility)
method, but I do not know how it is used.
I have tried the following:
$('#miTabla').jtable('changeColumnVisibility',{detalle :'hidden'});
But it does not do anything, neither error nor any useful information.
Does anyone know what my mistake may be?