| | 1 | | namespace Songhay.Models; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Defines a colorable, selectable menu item |
| | 5 | | /// </summary> |
| | 6 | | public class MenuDisplayItemModel : ColorDisplayItemModel, IGroupable, ISelectable |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Gets or sets the child items. |
| | 10 | | /// </summary> |
| 0 | 11 | | public MenuDisplayItemModel[] ChildItems { get; set; } = Enumerable.Empty<MenuDisplayItemModel>().ToArray(); |
| | 12 | |
|
| | 13 | | #region IGroupable members: |
| | 14 | |
|
| | 15 | | /// <summary> |
| | 16 | | /// Display text of the Group. |
| | 17 | | /// </summary> |
| 0 | 18 | | public string? GroupDisplayText { get; set; } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Identifier of the Group. |
| | 22 | | /// </summary> |
| 0 | 23 | | public string? GroupId { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Returns `true` when group is visually collapsed. |
| | 27 | | /// </summary> |
| 0 | 28 | | public bool IsCollapsed { get; set; } |
| | 29 | |
|
| | 30 | | #endregion |
| | 31 | |
|
| | 32 | | #region ISelectable members: |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Gets or sets whether this is default selection. |
| | 36 | | /// </summary> |
| 0 | 37 | | public bool? IsDefaultSelection { get; set; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// Gets or sets whether this is enabled. |
| | 41 | | /// </summary> |
| 0 | 42 | | public bool? IsEnabled { get; set; } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// Gets or sets whether this is selected. |
| | 46 | | /// </summary> |
| 0 | 47 | | public bool? IsSelected { get; set; } |
| | 48 | |
|
| | 49 | | #endregion |
| | 50 | | } |