Changing the name of columns
-
Hi!
So I’ve searched and can not find anything in your notes or faqs or asked/answered questions.
Let me first say, I’m not a programmer, so some of this is outside of my comfort zone. I have a form that posts to a google sheet. Using your plugin I’m able to get the data from the sheet to appear on a webpage. The issue I’m trying to resolve is that the column headers are “Name|name-1”, etc. If I change the headers manually in the sheet, the form stops feeding the sheet. I’ve come to what I think can do this, but I don’t know how to actually make it happen. Looking at https://datatables.net/reference/option/columns.name I see an example
$('#example').dataTable( { "columns": [ { "name": "engine" }, { "name": "browser" }, { "name": "platform" }, { "name": "version" }, { "name": "grade" } ] } );
Somehow that works with “datatables_columns”, but I just don’t know where to go from here. Do I add something to the plugin settings or the shortcode, what?
One other thing… in your documentation/description you reference and link to “Other Notes”, but that link doesn’t go anywhere.
Thank you for any help you can provide!!
- The topic ‘Changing the name of columns’ is closed to new replies.