1
0
mirror of synced 2024-11-23 22:41:01 +01:00

Tweaking the table

This commit is contained in:
TLH 2022-09-15 20:05:36 +09:00
parent a5f3cef90e
commit f290deca3f
2 changed files with 13 additions and 5 deletions

View File

@ -24,6 +24,13 @@
</PagerContent>
</MudDataGrid>*@
<MudTable Items="@titles" Filter="@Filter" @bind-SelectedItem="@selectedTitle">
<ColGroup>
<col style="width: 150px;" />
<col />
<col />
<col />
<col style="width: 150px;" />
</ColGroup>
<ToolBarContent>
<MudText Typo="Typo.h6">Built in titles</MudText>
<MudSpacer/>
@ -44,14 +51,14 @@
</MudTh>
</HeaderContent>
<RowTemplate>
<MudTd DataLabel="Id">@context.TitleId</MudTd>
<MudTd DataLabel="Name">@context.TitleName</MudTd>
<MudTd DataLabel="Id" Class="cursor-pointer">@context.TitleId</MudTd>
<MudTd DataLabel="Name" Class="cursor-pointer">@context.TitleName</MudTd>
</RowTemplate>
<PagerContent>
<MudTablePager PageSizeOptions="new []{10}"/>
</PagerContent>
</MudTable>
<MudText>Selected Title: @selectedTitle?.TitleName</MudText>
<MudText Class="pt-4">Selected Title: @selectedTitle?.TitleName</MudText>
</DialogContent>
<DialogActions>
<MudButton OnClick="Cancel">Cancel</MudButton>

View File

@ -76,10 +76,11 @@ public partial class Profile
{
var options = new DialogOptions
{
// CloseButton = false,
//CloseButton = false,
CloseOnEscapeKey = false,
DisableBackdropClick = true,
FullScreen = true
MaxWidth = MaxWidth.Medium,
FullWidth = true
};
var parameters = new DialogParameters
{