Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    With “filter” do you mean a plugin filter hook?
    Then, it would be the best to use the “tablepress_table_render_options” hook, and set the “hide_columns” accordingly.
    Where are you getting the parameter (UK/EU/ROW) from?

    Regards,
    Tobias

    Thread Starter Andrew Leonard

    (@andrewleonard)

    Yes I probably do
    I think it might be a problem where I get the parameter from – I do not know how to do this in WordPress – get the user to input a choice (radio button in HTML)
    I am away for a few days but can I get back to you on this one
    I need more help with how to use the “tablepress_table_render_options” hook

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, if the user is to choose the parameter (UK/EU/ROW) from a radio button or drop down, the best choice to implement this is not with a plugin filter hook, but just with some JavaScript.
    You could for example listen to a change in that form field with jQuery and then set a CSS class on the table. With some Custom CSS code, you can then hide/unhide the desired columns.

    Regards,
    Tobias

    Thread Starter Andrew Leonard

    (@andrewleonard)

    I just do not know how to do this!

    Thread Starter Andrew Leonard

    (@andrewleonard)

    I would love to learn this stuff, but you would have to give me a lot of help and I do not know if you want to spend so much of your time on this.
    I am not sure it is reasonable to ask

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I’d love to help, but I’m very busy at the moment, unfortunately, and this is slightly outside of regular TablePress support.

    You could maybe take a look at https://learn.jquery.com/ for some tutorials.

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hidden Columns’ is closed to new replies.