Calendar item context flyout implementation
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Calendar;
|
||||
|
||||
public sealed record CalendarContextMenuAction(
|
||||
CalendarContextMenuActionType ActionType,
|
||||
CalendarEventTargetType? TargetType = null,
|
||||
CalendarItemShowAs? ShowAs = null,
|
||||
CalendarItemStatus? ResponseStatus = null);
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Calendar;
|
||||
|
||||
public sealed record CalendarContextMenuItem(
|
||||
CalendarContextMenuAction Action,
|
||||
bool IsPrimary = false,
|
||||
bool IsEnabled = true,
|
||||
IReadOnlyList<CalendarContextMenuItem> ChildItems = null)
|
||||
{
|
||||
public IReadOnlyList<CalendarContextMenuItem> Children { get; init; } = ChildItems ?? [];
|
||||
|
||||
public bool HasChildren => Children.Count > 0;
|
||||
}
|
||||
Reference in New Issue
Block a user