Skip to content

NavigationItemAttribute class

namespace: Serenity.Navigation   assemblySerenity.Net.Core

Navigation item attribute.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public abstract class NavigationItemAttribute : Attribute

Public Members

name description
Category { get; set; } This is the full path of its parent, e.g. A/B for A/B/C.
FullPath { get; set; } The full path to a navigation item like A/B/C. This is used to generate the local text key for this item like Navigation.A/B/C.
IconClass { get; set; } Icon class.
ItemClass { get; set; } Extra CSS class to apply to its navigation element, e.g. LI.
Order { get; set; } Gets or sets the order (only) among its siblings.
Permission { get; set; } Permission required to view this navigation item.
RequireAnyFeature { get; set; } True to require any of the RequireFeatures to be enabled in order to pass.
RequireFeatures { get; set; } The set of feature toggles that this navigation item depends on.
Target { get; set; } Window target to open this link, e.g. _blank etc.
Title { get; set; } Title of the navigation item. It is the part after the last slash, e.g. C for A/B/C.
Url { get; set; } URL of this navigation item, should be null for a menu.

Protected Members

name description
NavigationItemAttribute(…) Creates a new instance of the attribute.

See Also