Hi Darren,
Good point!
That shortcode uses the original WP_List_Table class from WordPress which was never meant to be used on the front-end. Some plugin users asked for this feature. And now you want to make it responsive…? π π π
Okay, I don’t mind! But I could need a little help with that. I’m not very good at CSS. If you have any suggestions, I’ll be glad to hear them…
Best regards,
Peter
Hi Peter,
No, I wasn’t asking for it to be responsive, but the impression that the down arrow gives is that it should be, if you see what I mean?
Personally, I don’t think the tables I’m creating will work on a mobile device – intentionally – as it’s for exhibit/exhibitor administration and the like, which isn’t really something we envisage to be done from a phone, for example.
And, as you mention the WP_List_Table class – and checking out some of the admin tables on the WordPress back end – I can now see that this is working exactly the same as them, so no issues with that.
Thanks for clarifying though, and like I said, it might be worth removing the down arrow from the table as this will save any confusion for anyone else.
Thanks again,
Darren
Hi again,
I think I might have a quick “hack” that could be implemented to sort this out for you. If you add the class “is-expanded” to all of the table rows then when viewed on a smaller view port the hidden rows will automatically be shown so nothing will be hidden.
What do you think?
Darren
Here’s what it looks like for me if I add the class using the browser’s developer tools:
https://pasteboard.co/IHiBpqg.png
Hi Darren,
Great! π It even works if you add class βis-expandedβ to tbody only. I’ll add this to the shortcode… π
Thanks again for your contribution!!!
Best regards,
Peter
Hi Peter,
That’s awesome! Glad to help π
Darren
Hi Darren,
It took me hours to make the list table responsive, just to find out that I was missing one line of JS and one line of CSS code… π Anyway, it works now! It is available in the next release. If you want to use it right away you can download the latest release from Bitbucket.
This was a topic I had in mind for the far future. Thanks to you it’s available now.
Thanks,
Peter
Hi Peter,
Oh no! I hate it when things like that happen!
I’ll download from Bitbucket this evening and give the new code a spin.
Thanks again for such a great response to our tickets.
Darren