-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MudMenu: Add IsOpenChanged event (#7463)
* MudMenu added OnOpenedChanged (#7462) * MudMenu: renamed IsOpen changed event * MudMenu: added IsOpenChanged tests
- Loading branch information
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuIsOpenChangedTest.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,18 @@ | ||
@namespace MudBlazor.UnitTests.TestComponents | ||
|
||
<MudPopoverProvider></MudPopoverProvider> | ||
|
||
<MudMenu | ||
@ref="Menu" | ||
IsOpenChanged="@(o => _ = o ? TrueInvocationCount++ : FalseInvocationCount++)"/> | ||
|
||
|
||
@code { | ||
|
||
public MudMenu Menu { get; set; } | ||
|
||
public int FalseInvocationCount { get; private set; } | ||
|
||
public int TrueInvocationCount { get; private set; } | ||
|
||
} |
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