API Reference

Complete API documentation for UmbNav.

C# API

Models

UmbNavItem

The core menu item model.

namespace Umbraco.Community.UmbNav.Core.Models;

public class UmbNavItem
{
    // Identity
    public Guid Key { get; set; }
    public string Name { get; set; }

    // Item Type
    public UmbNavItemType ItemType { get; set; }

    // Link Properties
    public string? Url { get; set; }
    public Guid? ContentKey { get; set; }
    public IPublishedContent? Content { get; set; }
    public string? Target { get; set; }

    // Hierarchy
    public IEnumerable<UmbNavItem>? Children { get; set; }
    public int Level { get; set; }

    // Display Options
    public string? Description { get; set; }
    public string? CustomClasses { get; set; }
    public string? Icon { get; set; }

    // Media
    public IPublishedContent? Image { get; set; }
    public Guid[]? ImageArray { get; set; }

    // Link Attributes
    public string? Noopener { get; set; }
    public string? Noreferrer { get; set; }

    // Visibility
    public bool HideLoggedIn { get; set; }
    public bool HideLoggedOut { get; set; }
    public bool IncludeChildNodes { get; set; }

    // State
    public bool IsActive { get; set; }
}

UmbNavItemType

UmbNavBuildOptions

Services

IUmbNavMenuBuilderService

UmbNavMenuBuilderService

Default implementation with virtual methods for customization.

TagHelpers

UmbnavitemTagHelper

Extension Methods

UmbNavItemExtensions

Value Converter

UmbNavValueConverter


TypeScript API

Models

ModelEntryType

Extension Registry

UmbNavExtensionRegistry

UmbNavToolbarAction

UmbNavActionContext

UmbNavItemSlot

UmbNavItemTypeConfig

Components

UmbNavItem

Events

Imports


Configuration

UmbNavConfiguration

Data Type configuration options set in the backoffice.

Property
Type
Default
Description

MaxDepth

int

0

Maximum menu depth (0 = unlimited)

HideNaviHide

bool

false

Hide items where umbracoNaviHide is true

AutoExpand

bool

false

Auto-expand on hover in backoffice

AutoExpandDelay

int

1000

Hover delay in milliseconds

HideNoopener

bool

false

Hide noopener checkbox

HideNoreferrer

bool

false

Hide noreferrer checkbox

AllowImageIcon

bool

false

Allow images on menu items

AllowCustomClasses

bool

false

Allow custom CSS classes

HideLabel

bool

false

Display as full-width (hide label)

AllowTextItems

bool

true

Allow text-only items

AllowDescription

bool

false

Allow descriptions

EnableVisibility

bool

false

Enable member visibility options

HideIncludeChildNodes

bool

false

Hide "include children" option

Telemetry Configuration

Last updated

Was this helpful?