CleanView 1.0.17

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

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

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 749 11/13/2020
1.0.300 394 11/1/2020
1.0.216 844 10/31/2020
1.0.215 488 9/5/2020
1.0.214 452 9/4/2020
1.0.213 446 9/4/2020
1.0.212 421 9/3/2020
1.0.211 450 9/3/2020
1.0.210 434 9/3/2020
1.0.201 415 8/26/2020
1.0.200 439 7/20/2020
1.0.17 448 7/15/2020
1.0.16 497 7/7/2020
1.0.15 464 7/5/2020
1.0.14 485 7/4/2020
1.0.13 518 7/3/2020
1.0.12 415 7/1/2020
1.0.11 446 6/30/2020
1.0.10 499 6/29/2020
1.0.9 439 6/28/2020
1.0.8 443 6/28/2020
1.0.7 437 6/28/2020
1.0.6 442 6/28/2020
1.0.5 487 6/28/2020
1.0.3 427 6/25/2020
1.0.2 418 6/25/2020
1.0.1 430 6/25/2020
1.0.0 443 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.