Pode.Web icon indicating copy to clipboard operation
Pode.Web copied to clipboard

Question : horizontally scrollable table

Open phende opened this issue 3 years ago • 1 comments
trafficstars

I understand from Bootstrap documentation that a table within a <div class="table-responsive"> should be horizontally scrollable, but I can't get Pode.Web tables to become scrollable although they are already enclosed in that exact div.

Being a noob at HTML and Bootstrap I am probably missing something obvious, but I would be grateful if you could point me to the right direction.

By the way, I love Pode.Web, thanks for your work.

phende avatar Jun 21 '22 10:06 phende

Off the top of my head, I'm not too sure.

When I get chance, I'll have a look; though I've a feeling there could be a parent div overriding the x-overflow to hide it 🤔

Badgerati avatar Jun 21 '22 20:06 Badgerati

Another user in Discord had the same question, and got it working via -CssStyle. Be interesting to see if it's possible to have this in Pode.Web built in:

New-PodeWebTable -CssStyle @{'display'='block';'overflow-x'='auto';'white-space'= 'nowrap'}

Badgerati avatar May 29 '23 20:05 Badgerati

Excellent, that worked like a charm! Many thanks to you and to the Discord contributor.

phende avatar May 30 '23 11:05 phende