WordPress.org

Support

Support » Plugins and Hacks » WP-Table Reloaded » [plugin: wp table reloaded] Details column and more

[plugin: wp table reloaded] Details column and more

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TobiasBg

    @tobiasbg

    Hi,

    thanks for your question.

    That details column is unfortunately not that easy to get. It requires quite some JavaScript code which triggers an AJAX request to another PHP file. So this really requires some code development.

    Having the tables headers as in that link is also not possible directly with WP-Table Reloaded. The reason here is that the DataTables library that is included in WP-Table Reloaded does not contain the necessary CSS code and images of the jQueryUI layout. So, unfortunately, this would also require custom work to get those headers.

    Best wishes,
    Tobias

    I have a client that really needs this functionality too. Can you give us more hints as to how you accomplished it?

    Here’s what I’m thinking… my “details” data won’t change. I could put the “details” data into a hidden column in the table and show it onclick, adjusting the formatting of the particular td with css. With a little javascript, that be possible, yes?

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    I suggest that you manually try to achieve this by following the example at http://datatables.net/release-datatables/examples/api/row_details.html.

    For that, the best way would be to disable the usage of the DataTables JavaScript library within WP-Table Reloaded for your table and then manually load everything into the page. You could use a page template for this, for example, into which you would need to paste the initialization code for the library and the code that then open/closes the details.
    In that scenario, WP-Table Reloaded would only be used to generate the HTML code for the table.

    Regards,
    Tobias

    Thank you Tobias! I can make that work. Best regards to you!

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    great! Nice to hear that this helps! 🙂

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[plugin: wp table reloaded] Details column and more’ is closed to new replies.
Skip to toolbar