• Resolved padre.cedano

    (@padrecedano)


    Hi. Thanks for this wonderfull plugin.

    I create some tables dinamically. I get the information from a json file. My table have 4 columns, but in some cases i need show only one column.

    How i can to do this with Tablepress? I can assign one css id to one specific value stored into my json file and then apply colspan from css?

    Without tablepress i create my table into html directly, and when one condition is done i add this line to my string:

    $str_html.=
    '<tr class="fondoDomingos"><td colspan="4">SEMANA '.$str_semana.' (DOMINGOS)</td></tr>';

    I need to do that with tablepress. It’s possible?

    You can see my table here

    https://www.ads-software.com/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Creating colspan via CSS is not possible. In TablePress, you can merge columns via a special `#colspan# keyword. For more information on that, please see the “?” and “colspan” buttons below the table input fields on the “Edit” screen of your table.

    Note that you can not use the DataTables JS library features (like sorting and searching) in tables that use colspan.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic colspan from json data’ is closed to new replies.