first commit
This commit is contained in:
20
RS_system/Models/ViewModels/MenuViewModel.cs
Normal file
20
RS_system/Models/ViewModels/MenuViewModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Rs_system.Models.ViewModels
|
||||
{
|
||||
public class MenuViewModel
|
||||
{
|
||||
public List<MenuItem> Items { get; set; } = new List<MenuItem>();
|
||||
}
|
||||
|
||||
public class MenuItem
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string? Icon { get; set; }
|
||||
public string? Url { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsGroup { get; set; } // True if it's a module with children
|
||||
public List<MenuItem> Children { get; set; } = new List<MenuItem>();
|
||||
public int Order { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user