• Resolved Nobody777

    (@nobody777)


    First of all, thank you for an incredible plugin! I very much appreciate all the hard work you’ve done here.

    I have created a table that displays statistical data by year and I am using the Customized Filter Widgets extension to provide a drop-down sort-by-year option. It works excellent; however, I would like to have the table auto load the year I choose… For example, my current table includes the years 2009 through 2014. When the table loads, I would like 2014 to show first, but still allow the user to use all of the other search and display options.

    Here is the page I am working on for example:
    https://tricityaor.com/housing-statistics/

    Thank you,
    Dave

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Dave,

    thanks for your post, and sorry for the trouble.

    This should be possible with some extra JavaScript. Please try adding this to the “Custom Commands” textfield on the “Edit” screen of the table:

    "fnInitComplete": function() { $('#tablepress-5_wrapper').find('.column-filter-widget').last().find('select').val('2014').change(); }

    Regards,
    Tobias

    Thread Starter Nobody777

    (@nobody777)

    You absolutely ROCK my friend!!!! Thank you so much for help and the AWESOME plugin!!!! ??

    Thread Starter Nobody777

    (@nobody777)

    If I may add-on one quick question to this topic… Now that I can view the current year automatically, is there a way to add functionality to the Year drop-down so that it includes an “ALL” option?

    Thanks again!

    Dave

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Regard that “All” option: Sorry, I’m not aware of an option for that in the ColumnFilterWidgets JS code. You’ll have to remove the filtering for the individual years by clicking on the red years again, from what I know about that library.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter Nobody777

    (@nobody777)

    Thank you again!

    I left you a 5 star review… Thanks for the awesome plugin and support.

    Sincerely,
    Dave

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Dave,

    thanks, I really appreciate that ??

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Auto Display of Customized Filter Widgets’ is closed to new replies.