Улучшена адаптивность для телефонов. Добавлен новый ContextActionBarService
This commit is contained in:
18
PlaylistShared.Pwa/Services/ContextualActionBarService.cs
Normal file
18
PlaylistShared.Pwa/Services/ContextualActionBarService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace PlaylistShared.Pwa.Services;
|
||||
|
||||
public class ContextualActionBarService
|
||||
{
|
||||
// Событие, которое будет вызываться при изменении содержимого панели
|
||||
public event Action? OnChanged;
|
||||
|
||||
public RenderFragment? Content { get; set; } = null;
|
||||
|
||||
public bool? Bottom { get; set; }
|
||||
|
||||
public void ChangeParameters()
|
||||
{
|
||||
OnChanged?.Invoke();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user