CleanView 1.0.13

There is a newer version of this package available.
See the version list below for details.
dotnet add package CleanView --version 1.0.13
                    
NuGet\Install-Package CleanView -Version 1.0.13
                    
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.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CleanView" Version="1.0.13" />
                    
Directory.Packages.props
<PackageReference Include="CleanView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CleanView --version 1.0.13
                    
#r "nuget: CleanView, 1.0.13"
                    
#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.
#:package CleanView@1.0.13
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CleanView&version=1.0.13
                    
Install as a Cake Addin
#tool nuget:?package=CleanView&version=1.0.13
                    
Install as a Cake Tool

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>">
    <HeaderCenter>
    </HeaderCenter>

    <LeftMenuPanel>

        <div class="m-0 text-dark p-2 bg-white">

            <NavPanel>
                <NavPanelMenuItem Name="Home" Icon="oi-home" href="" />
                <NavPanelMenuItem Name="Counter" Icon="oi-plus" href="counter" />
                <NavPanelMenuItem Name="Fetch data" Icon="oi-list-rich" href="fetchdata" />
            </NavPanel>

        </div>

    </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>

        <div class="m-0 text-dark p-2 bg-white">
            <NavPanel>
                <LoginDisplay/>
            </NavPanel>
        </div>

    </RightMenuPanel>
    <Content>
        @Body
    </Content>
</CleanLayout>

Note:

  • 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.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 1,066 11/13/2020
1.0.300 524 11/1/2020
1.0.216 956 10/31/2020
1.0.215 588 9/5/2020
1.0.214 550 9/4/2020
1.0.213 589 9/4/2020
1.0.212 565 9/3/2020
1.0.211 542 9/3/2020
1.0.210 531 9/3/2020
1.0.201 513 8/26/2020
1.0.200 546 7/20/2020
1.0.17 554 7/15/2020
1.0.16 618 7/7/2020
1.0.15 585 7/5/2020
1.0.14 588 7/4/2020
1.0.13 618 7/3/2020
1.0.12 531 7/1/2020
1.0.11 549 6/30/2020
1.0.10 604 6/29/2020
1.0.9 553 6/28/2020
1.0.8 540 6/28/2020
1.0.7 553 6/28/2020
1.0.6 593 6/28/2020
1.0.5 582 6/28/2020
1.0.3 538 6/25/2020
1.0.2 551 6/25/2020
1.0.1 547 6/25/2020
1.0.0 545 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.