Table of Contents

Class NavigationMenuItem_RenderModel

Namespace
Raytha.Application.NavigationMenuItems
Assembly
Raytha.Application.dll
public record NavigationMenuItem_RenderModel : IInsertTemplateVariable, IEquatable<NavigationMenuItem_RenderModel>
Inheritance
NavigationMenuItem_RenderModel
Implements
Inherited Members

Properties

CssClassName

public string? CssClassName { get; init; }

Property Value

string

Id

public required string Id { get; init; }

Property Value

string

IsDisabled

public bool IsDisabled { get; init; }

Property Value

bool

IsFirstItem

public bool IsFirstItem { get; init; }

Property Value

bool

IsLastItem

public bool IsLastItem { get; init; }

Property Value

bool

Label

public required string Label { get; init; }

Property Value

string

MenuItems

public required IEnumerable<NavigationMenuItem_RenderModel> MenuItems { get; init; }

Property Value

IEnumerable<NavigationMenuItem_RenderModel>

OpenInNewTab

public bool OpenInNewTab { get; init; }

Property Value

bool

Ordinal

public int Ordinal { get; init; }

Property Value

int

Url

public required string Url { get; init; }

Property Value

string

Methods

Empty()

public static NavigationMenuItem_RenderModel Empty()

Returns

NavigationMenuItem_RenderModel

GetDeveloperNames()

public IEnumerable<string> GetDeveloperNames()

Returns

IEnumerable<string>

GetProjection()

public static Expression<Func<NavigationMenuItemDto, IReadOnlyCollection<NavigationMenuItem_RenderModel>, int, NavigationMenuItem_RenderModel>> GetProjection()

Returns

Expression<Func<NavigationMenuItemDto, IReadOnlyCollection<NavigationMenuItem_RenderModel>, int, NavigationMenuItem_RenderModel>>

GetProjection(NavigationMenuItemDto, IReadOnlyCollection<NavigationMenuItem_RenderModel>, int)

public static NavigationMenuItem_RenderModel GetProjection(NavigationMenuItemDto entity, IReadOnlyCollection<NavigationMenuItem_RenderModel> nestedMenuItems, int menuItemsWithSameParentCount)

Parameters

entity NavigationMenuItemDto
nestedMenuItems IReadOnlyCollection<NavigationMenuItem_RenderModel>
menuItemsWithSameParentCount int

Returns

NavigationMenuItem_RenderModel

GetTemplateVariables()

public IEnumerable<KeyValuePair<string, string>> GetTemplateVariables()

Returns

IEnumerable<KeyValuePair<string, string>>

GetTemplateVariablesAsForEachLiquidSyntax()

public string GetTemplateVariablesAsForEachLiquidSyntax()

Returns

string