• Resolved Mihkel Roomet

    (@mihkelroomet)


    I was wondering if there was any way to see (and potentially copy-paste) the default table options already active — the ones that you can override under Advanced Options. That way, if I wanted to change one little thing, I wouldn’t have to recreate something that’s potentially a massive array, if I want to keep everything else the same.

    For example, I’d like to add “page” : “all” to “exportOptions” → “modifier” for the PDF button just like here. I already have several buttons set up through WPDA, though, with icons on them, which I really like. So it would be super nice if I didn’t have to write all the customization you guys have already done again.

    Another example would be “columnDefs”, which I have seen has been discussed on here before. That’s how I found out all suboptions you don’t explicitly specify will be reset to default, without retaining the stuff set up by WPDA.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Kim L

    (@kimmyx)

    Hi @mihkelroomet,

    Thanks for the post! There’s currently no way to see “all” the default options currently set by the plugin for a table.

    An alternative way would be to create a data table with your own set of defaults, and then just duplicate the table when creating new ones.

    I’ll inform Peter about possibly adding the capability of seeing and listing all the default options set by the plugin. 😊

    Let us know if you have more questions!

    Thread Starter Mihkel Roomet

    (@mihkelroomet)

    Thanks for the reply!

    As for adding “page” : “all” to “exportOptions” → “modifier” (to essentially make it export all rows not just the current page), which is the task that I was working on that led to this post, I found that simply disabling server side processing right above the Advanced Options did the trick (which is apparently the same as writing “serverSide”: false in Advanced Options). I guess when using client-side processing with paging enabled the rows not in view aren’t loaded in memory or something, so there is no way export them.

    So for now, problem solved 😄 thanks again (if you did manage to add the capability of listing all the default option set by the plugin though, that would still be awesome, I imagine that could help new users understand and get a grasp on the Advanced Options much quicker)

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

The topic ‘Default advanced options’ is closed to new replies.