• Resolved Tim Thee

    (@timotheebesse)


    Hello,

    The new default settings options is very promising, but I can’t get it to work. I went to the igsv settings page and saved settings to reset it, it showed the default igsv-tables class and the default setting to mask the csv/pdf/.. buttons, but I can’t add any other setting.

    When I erase the cell and click on the save button the page reloads with all options blank and the button disappears. I believe it’s a escape bug but I can’t get it to work

    I tried :
    {“dom”:”TC<‘clear’>lfrtip”, “searching”:false}
    {“dom”:”TC<‘clear’>lfrtip”, “searching”:”false”}
    {“dom”:”TC<‘clear’>lfrtip”, “paging”:false}
    {“searching”:false, “ordering”:false}

    Only the {“dom”:”TC<‘clear’>lfrtip”} alone works

    I can disable paging and searching in each shortcode though, but the use of default options would be great !

    Thanks !

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Meitar

    (@meitar)

    You’re right, I was accidentally treating the passed JSON as a string, not an object, in the DataTables initialization routine. Try updating to 0.9.1.1 (released just now) and let me know if the issue persists.

    Thread Starter Tim Thee

    (@timotheebesse)

    Thanks !

    It works but I can’t figure out how to write the order option array : %5B%5B 2, “desc” %5D%5D doesn’t work here…

    I’d like to add this ordering by default : “order”: [[ 0, ‘desc’ ]]

    Plugin Author Meitar

    (@meitar)

    You don’t need to URL-escape the value here, that’s only to avoid confusing the WordPress shortcode parser. So, just use this:

    { "order": [[0, "desc"]] }

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

The topic ‘Setting default’ is closed to new replies.