Skip to content

Commit 3523900

Browse files
authored
Initialize (#118)
1 parent e88b589 commit 3523900

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CodeBeam.MudExtensions/Components/Stepper/MudStepper.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected internal async Task SetActiveIndex(MudStep step)
193193
await ActiveStepChanged.InvokeAsync();
194194
}
195195

196-
protected internal async Task SetActiveIndex(int count, bool firstCompleted = false, bool skipPreventProcess = false)
196+
public async Task SetActiveIndex(int count, bool firstCompleted = false, bool skipPreventProcess = false)
197197
{
198198
var stepChangeDirection = (
199199
count == 0 ? StepChangeDirection.None :

ComponentViewer.Docs/Pages/Components/ApiPage.razor

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@page "/api"
22
@using MudBlazor.Extensions
3+
@using System.Text.RegularExpressions
34
@using System.Security.Cryptography.X509Certificates
45

56
<ExamplePage Title="API">
@@ -403,6 +404,7 @@
403404
</ExampleCard>
404405

405406
<ExampleCard Title="Api - MudStepper & MudStep" HasExpansionPanel="true">
407+
<MudText Class="ma-2" Typo="Typo.h6" Color="Color.Secondary">Properties</MudText>
406408
<MudTable Items="@(typeof(MudStepper).GetProperties().Where(x => x.Name != "FieldId" && x.Name != "UserAttributes").OrderBy(x => x.Name).ToList())">
407409
<HeaderContent>
408410
<MudTh>Name</MudTh>
@@ -421,6 +423,25 @@
421423
</MudTd>
422424
</RowTemplate>
423425
</MudTable>
426+
<MudText Class="ma-2" Typo="Typo.h6" Color="Color.Secondary">Methods</MudText>
427+
<MudTable Items="@(typeof(MudStepper).GetMethods().Where(x => x.Name != "SetParametersAsync" && Regex.IsMatch(x.Name[0].ToString(), "[A-Z]")).OrderBy(x => x.Name).ToList())">
428+
<HeaderContent>
429+
<MudTh>Name</MudTh>
430+
<MudTh>Type</MudTh>
431+
<MudTh>Default</MudTh>
432+
</HeaderContent>
433+
<RowTemplate>
434+
<MudTd>@context.Name</MudTd>
435+
<MudTd>@context.ReturnType.Name</MudTd>
436+
<MudTd>
437+
@if (true)
438+
{
439+
MudStepper instance = new();
440+
@*<MudText Typo="Typo.body2">@(context(instance)?.ToString() ?? "null")</MudText>*@
441+
}
442+
</MudTd>
443+
</RowTemplate>
444+
</MudTable>
424445
<MudText Class="ma-4" Typo="Typo.h6" Color="Color.Secondary">MudStep</MudText>
425446
<MudTable Items="@(typeof(MudStep).GetProperties().Where(x => x.Name != "FieldId" && x.Name != "UserAttributes").OrderBy(x => x.Name).ToList())">
426447
<HeaderContent>

0 commit comments

Comments
 (0)