How to instigate the shortcode for datatables_columns
-
I’ve read through the documentation 100 times but cannot get the right configuration of the shortcode to make my last column not visible (but still there and searchable), I was able to do this by altering the default settings, but I have multiple charts across my site and cannot do this on a default level.
Default code:
{
“dom”: “B<‘clear’>lfrtip”,
“buttons”: [
“colvis”,
“copy”,
“csv”,
“excel”
],
“pageLength”: 25,
“columns”: [
null,
null,
null,
null,
{ “visible”: false }
]
}Datatables code:
$(‘#example’).dataTable( {
“columns”: [
null,
null,
null,
null,
{ “visible”: false }
] } );
} );Shortcode:
[gdoc key=”https://docs.google.com/spreadsheets/d/1234546789/edit#gid=0″ datatables_columns=”null, null, null, null, ‘{ ‘visible’: false }'”]
[gdoc key=”https://docs.google.com/spreadsheets/d/1234546789/edit#gid=0″ datatables_columns=”‘null’, ‘null’, ‘null’, ‘null’, ‘{ ‘visible’: false }'”]
[gdoc key=”https://docs.google.com/spreadsheets/d/1234546789/edit#gid=0″ datatables_columns=”[ null, null, null, null, { “visible”: false } ]”]
[gdoc key=”https://docs.google.com/spreadsheets/d/1234546789/edit#gid=0″ datatables_columns=”‘null’, ‘null’, ‘null’, ‘null’, { ‘visible’: false } ]”]And I’ve tried a few other variations as well but cannot figure it out
- The topic ‘How to instigate the shortcode for datatables_columns’ is closed to new replies.