Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lampamp

    (@lampamp)

    Great, now the array is being passed, but there seems to be another problem in which target columns are not being recognized.

    I’ve simplified the code to add a classname “never” to the target column 1 as follows

    [gdoc key="https://docs.google.com/spreadsheets/d/TABLE" datatables_column_defs='%5B{"targets":1, "className": "never"}%5D']

    when I look at the results, the targets columns aren’t recognized (columns aren’t affected at all) and the option has been applied in a strange way to the whole table

    here’s what I mean, see “targets” and “className” as interpreted as strings (i think) rather than being applied to column 1:

    <pre><code><table id="igsv-TABLE" class="igsv-table" lang="en-US" summary="Google Spreadsheet" title="" style="" data-column-defs='[{<code class=&quot;js string&quot;>&quot;targets&quot;</code><code class=&quot;js plain&quot;>:1, &quot;</code><code class=&quot;js plain&quot;>className&quot;: </code><code class=&quot;js string&quot;>&quot;never&quot;</code>}]' ><thead>

    Sorry for asking a lot, I’ve been trying to solve it for hours :/

    Thread Starter lampamp

    (@lampamp)

    Changed that, still no luck
    [gdoc key="tablekeyhere" datatables_column_defs='%5B{"targets":-1,"data":null,"orderable":false,"className":'details-control',"defaultContent":''}%5D']

    am I passing the array correctly?

Viewing 2 replies - 1 through 2 (of 2 total)