-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
3,004 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.100", | ||
"rollForward": "latestFeature" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ | |
@using MudBlazor.Docs.Wasm | ||
@using MudBlazor.Docs | ||
@using MudBlazor | ||
@using MudBlazor.Events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace MudBlazor.Docs.Components; | ||
|
||
public partial class EnumSwitch<T> | ||
{ | ||
private T _value; | ||
|
||
[Parameter] | ||
public T Value | ||
{ | ||
get => _value; | ||
set | ||
{ | ||
if (_value.Equals(value)) return; | ||
_value = value; | ||
ValueChanged.InvokeAsync(value); | ||
} | ||
} | ||
|
||
[Parameter] public EventCallback<T> ValueChanged { get; set; } | ||
|
||
private Type Type => typeof(T); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridDetailRowExample.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@using System.Net.Http.Json | ||
@using MudBlazor.Examples.Data.Models | ||
@namespace MudBlazor.Docs.Examples | ||
@inject HttpClient httpClient | ||
|
||
<MudDataGrid Items="@Elements"> | ||
<Columns> | ||
<HierarchyColumn T="Element" ButtonDisabledFunc="@(x => x.Sign == "He")" /> | ||
<Column T="Element" Field="Number" Title="Nr" /> | ||
<Column T="Element" Field="Sign" /> | ||
<Column T="Element" Field="Name" /> | ||
<Column T="Element" Field="Position" /> | ||
<Column T="Element" Field="Molar" Title="Molar mass" /> | ||
</Columns> | ||
<ChildRowContent> | ||
<MudCard> | ||
<MudCardHeader> | ||
<CardHeaderContent> | ||
<MudText Typo="Typo.h6">@context.Item.Name</MudText> | ||
</CardHeaderContent> | ||
</MudCardHeader> | ||
<MudCardContent> | ||
<MudText>This element is number @context.Item.Number</MudText> | ||
<MudText>This element has a molar mass of @context.Item.Molar</MudText> | ||
</MudCardContent> | ||
</MudCard> | ||
</ChildRowContent> | ||
<PagerContent> | ||
<MudDataGridPager T="Element" /> | ||
</PagerContent> | ||
</MudDataGrid> | ||
|
||
@code { | ||
private IEnumerable<Element> Elements = new List<Element>(); | ||
|
||
protected override async Task OnInitializedAsync() | ||
{ | ||
Elements = await httpClient.GetFromJsonAsync<List<Element>>("webapi/periodictable"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.