File tree Expand file tree Collapse file tree 4 files changed +7
-18
lines changed
src/DotNetElements.AppFramework.MudBlazorExtensions Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Original file line number Diff line number Diff line change 44
55@if (SimpleTable )
66{
7- <td class =" py-0 pl-2 @Class" style =" @($ " width: {Width}px; " ) @Style " >
7+ <td class =" py-0 pl-2 @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
88 <TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
99 <TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1010 @ChildContent
1111 </td >
1212}
1313else
1414{
15- <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" width: {Width}px; {@ Style}" )" DataLabel =" Actions" >
15+ <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" DataLabel =" Actions" >
1616 <TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1717 <TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1818 @ChildContent
4141
4242 [Parameter ]
4343 public RenderFragment ? ChildContent { get ; set ; }
44-
45- [Parameter ]
46- public int Width { get ; set ; } = 140 ;
4744}
Original file line number Diff line number Diff line change 55
66@if (SimpleTable )
77{
8- <td class =" py-0 pl-2 @Class" style =" @($ " width: {Width}px; " ) @Style " >
8+ <td class =" py-0 pl-2 @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
99 <TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1010 <TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1111 <TableActionsButton OnClick =" () => OnShowEntryDetails.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Info" Color =" Color.Default" Style =" @(DetailsButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1414}
1515else
1616{
17- <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" width: {Width}px; {@ Style}" )" DataLabel =" Actions" >
17+ <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" DataLabel =" Actions" >
1818 <TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
1919 <TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
2020 <TableActionsButton OnClick =" () => OnShowEntryDetails.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Info" Color =" Color.Default" Style =" @(DetailsButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
5050
5151 [Parameter ]
5252 public RenderFragment ? ChildContent { get ; set ; }
53-
54- [Parameter ]
55- public int Width { get ; set ; } = 140 ;
5653}
Original file line number Diff line number Diff line change 22
33@if (SimpleTable )
44{
5- <th class =" @Class" style =" @($ " width: {Width}px; " ) @Style " >
5+ <th class =" @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
66 Actions
77 </th >
88}
99else
1010{
11- <MudTh Class =" @Class" Style =" @($" width: {Width}px; {@ Style}" )" >
11+ <MudTh Class =" @Class" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" >
1212 Actions
1313 </MudTh >
1414}
1717{
1818 [Parameter ]
1919 public bool SimpleTable { get ; set ; }
20-
21- [Parameter ]
22- public int Width { get ; set ; } = 140 ;
2320}
Original file line number Diff line number Diff line change 1- using Microsoft . AspNetCore . Components ;
2-
3- namespace DotNetElements . AppFramework . MudBlazorExtensions . Util ;
1+ namespace DotNetElements . AppFramework . MudBlazorExtensions . Util ;
42
53public sealed class StatusListItem
64{
You can’t perform that action at this time.
0 commit comments