Repository navigation
Expand file tree
/
Copy pathNavItem.cs
More file actions
62 lines (51 loc) · 1.65 KB
/
Copy pathNavItem.cs
File metadata and controls
62 lines (51 loc) · 1.65 KB
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
53
54
55
56
57
58
59
60
61
62
using System.Collections.Generic;
namespace ServiceStack
{
/// <summary>
/// NavItem in ViewUtils.NavItems and ViewUtils.NavItemsMap
/// </summary>
public class NavItem : IMeta
{
/// <summary>
/// Link Label
/// </summary>
public string Label { get; set; }
/// <summary>
/// Link href
/// </summary>
public string Href { get; set; }
/// <summary>
/// Whether NavItem should only be considered active when paths
/// are an exact match otherwise checks if ActivePath starts with Path
/// </summary>
public bool? Exact { get; set; }
/// <summary>
/// Emit id="{Id}"
/// </summary>
public string Id { get; set; }
/// <summary>
/// Override class="{Class}"
/// </summary>
public string ClassName { get; set; }
/// <summary>
/// Icon class (if any)
/// </summary>
public string IconClass { get; set; }
/// <summary>
/// Only show if NavOptions.Attributes.Contains(Show)
/// </summary>
public string Show { get; set; }
/// <summary>
/// Do not show if NavOptions.Attributes.Contains(Hide)
/// </summary>
public string Hide { get; set; }
/// <summary>
/// Sub Menu Child NavItems
/// </summary>
public List<NavItem> Children { get; set; }
/// <summary>
/// Attach additional custom metadata to this NavItem
/// </summary>
public Dictionary<string, string> Meta { get; set; }
}
}