25 lines
610 B
C#
25 lines
610 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace PlaylistShared.Pwa.Services;
|
|
|
|
public class ContextualActionBarService
|
|
{
|
|
// Событие, которое будет вызываться при изменении содержимого панели
|
|
public event Action? OnChanged;
|
|
|
|
public RenderFragment? Content { get; set; } = null;
|
|
|
|
public ContextualActionBarPosition Position { get; set; } = ContextualActionBarPosition.Default;
|
|
|
|
public void ChangeParameters()
|
|
{
|
|
OnChanged?.Invoke();
|
|
}
|
|
}
|
|
|
|
public enum ContextualActionBarPosition
|
|
{
|
|
Default,
|
|
Top,
|
|
Bottom,
|
|
} |