• Resolved firebunny

    (@noreplyfirebunnyorg)


    Hello,
    I would like to change the default settings when creating a new table. This would save me so much time, and would make it easier for other authors to create tables.
    The only two boxes that should be checked are:
    – Use the following functions
    – Allow users to sort table

    I apologise for the possibility of some wrong English, I am using a dutch language-pack with TablePress.

    ps. By default all of the options are checked.

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

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    This is possible with a TablePress Extension, similar to the one from https://tablepress.org/extensions/datatables-off-new-tables/
    In that, you’d basically need to replace the line

    $table['options']['use_datatables'] = false;

    with

    $table['options']['datatables_filter'] = false;
    $table['options']['datatables_paginate'] = false;
    $table['options']['datatables_lengthchange'] = false;
    $table['options']['datatables_info'] = false;
    $table['options']['datatables_scrollx'] = false;

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Change default settings Javascript DataTables’ is closed to new replies.