Pmad.Milsymbol.AspNetCore 0.1.14

dotnet add package Pmad.Milsymbol.AspNetCore --version 0.1.14                
NuGet\Install-Package Pmad.Milsymbol.AspNetCore -Version 0.1.14                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pmad.Milsymbol.AspNetCore" Version="0.1.14" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pmad.Milsymbol.AspNetCore --version 0.1.14                
#r "nuget: Pmad.Milsymbol.AspNetCore, 0.1.14"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pmad.Milsymbol.AspNetCore as a Cake Addin
#addin nuget:?package=Pmad.Milsymbol.AspNetCore&version=0.1.14

// Install Pmad.Milsymbol.AspNetCore as a Cake Tool
#tool nuget:?package=Pmad.Milsymbol.AspNetCore&version=0.1.14                

Milsymbol for ASP.NET Core

Setup

In Program.cs, on the Mvc Builder, add the Milsymbol components.

builder.Services
    .AddControllersWithViews()
        .AddMilsymbolMvcComponents();

In Program.cs, on the ApplicationBuilder, add the Milsymbol static files middleware.

app.UseMilsymbolStaticFiles();

In _ViewImports.cshtml, add the Milsymbol tag helpers.

@addTagHelper *, Pmad.Milsymbol.AspNetCore

ORBAT Component

Implement the IOrbatUnit interface, or use the provided class OrbatUnitViewModel, and in the model, add a property of type IOrbarUnit

public required IOrbatUnit RootUnit { get; set; }

In the view (.cshtml file), add the ORBAT component.

<pmad-orbat root-unit="@Model.RootUnit" />

To set a tooltip, or a link on each unit symbol, you can :

  • implement the interface IOrbatUnitViewModel on the model and provide Href and Title,
  • or use the provided class OrbatUnitTitleViewModel and set Href and Title
  • or set delegates on pmad-orbat tag
<pmad-orbat 
    root-unit="@Model.RootUnit"
    unit-title="@(u => ((YourOrbatUnit)u).Label)"
    unit-link-controller="Units" unit-link-action="Details" unit-link-route="@(u => new { id = ((YourOrbatUnit)u).UnitID })" />
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.14 91 1/2/2025