vihali
Forum Replies Created
-
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] datatables_column_defsI also had and still have problems in implementing codes found from datatables into shortcode of the plugin.
For this I figure out you need to write
“columnDefs”: [ { “visible”: false, “targets”: 0 } ]
into this
[gdoc key="url" datatables_column_defs='%5B{ "visible": false, "targets":0}%5D']
Here if you want to hide column 1 and 3 then set “target”: [0,2] and remember to replace [ with %5B and ] with %5D like this
“targets”:%5B 0,2 %5D
Those seem to be simple to the author and other IT guys but very difficult to the one like me. I am a physicsist and it took me few months to figure this translation.
Hope this helps.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Change column widthHmm, I read the description of responsive.breakpoint but do not know how to translate that “language” into language using [gdoc]. It would be better to have an example of how to implement datatables codes into this addon.
Now I have to copy the table from google sheet into html and call datatables and its other codes. It works but I hate to login to update table. Wroking on googlesheet is much more pleasant.
I tried to insert googlesheet using this addon’s code [gdoc] and wrote javascript codes according datatables examples to change the table’s properties but it still kept unchanged. There was something wrong but I cannot figure it out.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Columns after green buttonYou can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code. The <script> tag can be placed in the <head> section of your HTML, in the <body> section, or after the </body> close tag, depending on when you want the JavaScript to load.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Change column widthIt does not work either. It seems that all the tag beginning with datatables_column_defs do not work as I tried many tags but I could not see any change. There should be something wrong that I could not figure out.
I will try CSS as you suggested. Too much for a guy like me ?? Perhaps I will ask an IT guy to help me.
Thank you very much.
- This reply was modified 6 years, 4 months ago by vihali.