Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to adjust the column width of a table in MudBlazor

$
0
0

MudTable component really great, look very nice. But I want configure column width. Is possible?

<MudTable Items="@my_users"><HeaderContent><MudTh>Nr</MudTh><MudTh>Username</MudTh><MudTh>Email</MudTh><MudTh>Role</MudTh><MudTh>Actions</MudTh></HeaderContent><RowTemplate><MudTd>@context.Nr</MudTd><MudTd>@context.Username</MudTd><MudTd>@context.Email</MudTd><MudTd>@context.Role</MudTd><MudTd><MudButton @onclick="@(()=> OnEdit(@context))">Edit</MudButton></MudTd></RowTemplate><PagerContent><MudTablePager PageSizeOptions="new int[]{10, 25, 100}" /></PagerContent></MudTable>

Problem is, space for columns is same for all column. I want limit first and last column width. I know, I can use normal HTML tabel but not look so good. MudTable can do filter and multiselection.So I know HTML can do with colgroup tag but how to you apply with MudTable? I try add colgroup in HeaderContent but not work. Thanks for help.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>