CleanView 1.0.16

There is a newer version of this package available.
See the version list below for details.
dotnet add package CleanView --version 1.0.16                
NuGet\Install-Package CleanView -Version 1.0.16                
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="CleanView" Version="1.0.16" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CleanView --version 1.0.16                
#r "nuget: CleanView, 1.0.16"                
#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 CleanView as a Cake Addin
#addin nuget:?package=CleanView&version=1.0.16

// Install CleanView as a Cake Tool
#tool nuget:?package=CleanView&version=1.0.16                

CleanView

Clean view is a wrapper for MainLayout for blazor project. As it has customizable components, a wrapper allows easier definition than a replacing MainLayout.

You need to:

  1. Import the styles from "_content/CleanView/styles.css"
  2. Add a using statement to _Imports.razor
  3. Update your MainLayour razor to use the wapper.

Index.html or _Host.cshtml

<head>
    ...
    <link href="_content/CleanView/styles.css" rel="stylesheet" />
</head>

_Imports.razor

@using CleanView

MainLayout.razor

@inherits LayoutComponentBase
<CleanLayout CopyrightOwner="<Your Name>" CopyrightStart="1936">
    <HeaderCenter>
        <AppHeader />
    </HeaderCenter>
    <LeftMenuPanel>
        <NavMenuLeft />
    </LeftMenuPanel>
    <LeftIcon>
        <span class="oi oi-grid-three-up text-shadow" aria-hidden="true"></span>
    </LeftIcon>
    <RightIcon>
        <span class="oi oi-cog text-shadow" aria-hidden="true"></span>
    </RightIcon>
    <RightMenuPanel>
        <NavMenuRight />
    </RightMenuPanel>
    <Content>
        @Body
    </Content>
</CleanLayout>

  • NavPanelMenuItems can contain NavPanelMenuItems allowing for nested menu structure.
  • NavPanelMenuItems can be treated like anchor <a /> elements. Attributes are splattered to the anchor. If css classes are used be aware they will override the default class applied.
<NavPanel>

    <NavPanelMenuItem Name="Home" Icon="oi-home" href="" />
    <NavPanelMenuItem Name="Sub Menu" Icon="">
        <NavPanelMenuItem Name="Counter" Icon="oi-plus" href="counter" />
        <AuthorizeView>
            <NavPanelMenuItem Name="Fetch data" Icon="oi-list-rich" href="fetchdata" />
            <NavPanelMenuItem Name="Log out" Icon="oi-account-logout" @onclick="BeginSignOut" />
        </AuthorizeView>
    </NavPanelMenuItem> 
    
</NavPanel>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.1.0.4 822 11/13/2020
1.0.300 443 11/1/2020
1.0.216 862 10/31/2020
1.0.215 507 9/5/2020
1.0.214 471 9/4/2020
1.0.213 508 9/4/2020
1.0.212 485 9/3/2020
1.0.211 463 9/3/2020
1.0.210 452 9/3/2020
1.0.201 432 8/26/2020
1.0.200 468 7/20/2020
1.0.17 473 7/15/2020
1.0.16 536 7/7/2020
1.0.15 504 7/5/2020
1.0.14 510 7/4/2020
1.0.13 537 7/3/2020
1.0.12 452 7/1/2020
1.0.11 463 6/30/2020
1.0.10 525 6/29/2020
1.0.9 469 6/28/2020
1.0.8 462 6/28/2020
1.0.7 475 6/28/2020
1.0.6 514 6/28/2020
1.0.5 504 6/28/2020
1.0.3 458 6/25/2020
1.0.2 470 6/25/2020
1.0.1 464 6/25/2020
1.0.0 462 6/24/2020

Please see GitHub repo for example of use in Client.
CleanLayout, NavPanel, NavPanelMenuItem are the primary components.
UserAccountDisplay is a drop in replacement for the identity templates LoginDisplay in Webassembly projects.