Title: Default options broken
Last modified: August 30, 2016

---

# Default options broken

 *  Resolved [Tim Thee](https://wordpress.org/support/users/timotheebesse/)
 * (@timotheebesse)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/default-options-broken/)
 * Hi,
 * When I updated to 0.9.11 the default options broke
 * Here was my setup, working fine untill today:
 *     ```
       {"dom":"rtip","order":[[0"desc"]],"scrollX": true}
   
       I saw after the update that the default options text was modified (linebreaks had been inserted) and I managed to restore some options by adding quotes :
       ```
   
 * {
    “dom”: “rtip”, “scrollX”: “true” }` But I can’t get the new syntax for the
   ordering of the first column : “order”: “[[0, ‘desc’]]” doesn’t work
 * Thanks for your help !
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

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

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/default-options-broken/#post-6498059)
 *     ```
       "order": "[[0, 'desc']]"
       ```
   
 * That’s two strings. You need an array. I think you mean
 *     ```
       "order": [[0, "desc"]]
       ```
   
 *  Thread Starter [Tim Thee](https://wordpress.org/support/users/timotheebesse/)
 * (@timotheebesse)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/default-options-broken/#post-6498089)
 * It doesn’t seem to work,
 * when I write this :
 *     ```
       {
           "dom": "rtip",
           "scrollX": "true",
           "order": [[0, "desc"]]
       }
       ```
   
 * The code is automatically replaced with :
 *     ```
       {
           "dom": "rtip",
           "scrollX": "true",
           "order": [
               [
                   0,
                   "desc"
               ]
           ]
       }
       ```
   
 * And the display of tables is broken (no datatables, no scrolling, etc)
 * When I write on one line :
    `{"dom": "rtip", "scrollX": "true", order": [[0, "
   desc"]]}`
 * The frame becomes blank when I save
 * Any idea of what’s provoking this ?
 * Thanks
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/default-options-broken/#post-6498107)
 *     ```
       "scrollX": "true"
       ```
   
 * This is the string “true”, but the `scrollX` option takes a boolean value. I 
   think you want:
 *     ```
       "scrollX": true
       ```
   
 * Also,
 *     ```
       {"dom": "rtip", "scrollX": "true", order": [[0, "desc"]]}
       ```
   
 * is syntactically broken; you’re missing a double-quote in front of `order`.
 * > Any idea of what’s provoking this ?
 * I think it would help you to refresh your knowledge of JSON syntax and the various
   DataTables options you’re trying to use.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/default-options-broken/#post-6498107)
 * Status: resolved