21 lines
644 B
Plaintext
21 lines
644 B
Plaintext
@implements IDisposable
|
|
@inject ContextualActionBarService ContextualActionBarService
|
|
|
|
@code {
|
|
[Parameter] public bool Bottom { get; set; } = false;
|
|
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
ContextualActionBarService.Content = ChildContent;
|
|
ContextualActionBarService.Bottom = Bottom;
|
|
ContextualActionBarService.ChangeParameters();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
ContextualActionBarService.Content = null;
|
|
ContextualActionBarService.Bottom = null;
|
|
ContextualActionBarService.ChangeParameters();
|
|
}
|
|
} |