/
NavigationItem.cs
52 lines (43 loc) · 1.09 KB
/
NavigationItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace Serenity.Navigation;
/// <summary>
/// A node in a navigation tree model
/// </summary>
public class NavigationItem
{
/// <summary>
/// Title
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Full path of the item
/// </summary>
public string? FullPath { get; set; }
/// <summary>
/// Icon class
/// </summary>
public string? IconClass { get; set; }
/// <summary>
/// Item class
/// </summary>
public string? ItemClass { get; set; }
/// <summary>
/// URL
/// </summary>
public string? Url { get; set; }
/// <summary>
/// Target window to open the link, e.g. "_blank"
/// </summary>
public string? Target { get; set; }
/// <summary>
/// Parent navigation item
/// </summary>
public NavigationItem? Parent { get; set; }
/// <summary>
/// List of children
/// </summary>
public List<NavigationItem> Children { get; private set; } = [];
/// <summary>
/// True if this is a navigation section
/// </summary>
public bool IsSection { get; set; }
}