forked from MudBlazor/MudBlazor
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
a6b5027
commit eec9dfa
Showing
2 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 9 additions & 5 deletions
14
...udBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerCloseOnClearTest.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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
@namespace MudBlazor.UnitTests.TestComponents | ||
<MudPopoverProvider></MudPopoverProvider> | ||
<MudPopoverProvider/> | ||
|
||
<MudDateRangePicker id="picker" @ref="_picker" Label="With action buttons" @bind-DateRange="DateRange"> | ||
<PickerActions> | ||
<MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.Clear(@CloseOnClear))">Clear</MudButton> | ||
<MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.ClearAsync(CloseOnClear))">Clear</MudButton> | ||
</PickerActions> | ||
</MudDateRangePicker> | ||
|
||
@code { | ||
MudDateRangePicker _picker; | ||
[Parameter] public DateRange DateRange { get; set; } | ||
[Parameter] public bool CloseOnClear { get; set; } | ||
private MudDateRangePicker _picker; | ||
|
||
[Parameter] | ||
public DateRange DateRange { get; set; } | ||
|
||
[Parameter] | ||
public bool CloseOnClear { get; 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