BlazorCleave 1.0.99

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

// Install BlazorCleave as a Cake Tool
#tool nuget:?package=BlazorCleave&version=1.0.99

BlazorCleave

A Blazor class library that wraps the functionality of Cleave.js.

Usage

  1. In a Blazor Server or Blazor WebAssembly project, add a reference to the BlazorCleave package.

  2. In your _Imports.razor file, add the following statements:

@using BlazorCleave
@using BlazorCleave.Data
  1. In your _Host.cshtml (for Blazor Server) or index.html (for Blazor WebAssembly) file, add the following tags somewhere before the reference to the Blazor .js file:
    <script src="_content/BlazorCleave/BlazorCleave.js"></script>
    <script src="_content/BlazorCleave/cleave-phone.i18n.js"></script>

You're now ready to use the package. For example, inside a .razor file, add:

//Time formatting
<Cleave Placeholder="hh:mm" TimeFormat="@( new TimeFormat{
        Format = new[] { 'h', 'm' }
    })" InputType="InputType.Time" />

// Date formatting
<Cleave Placeholder="YYYY/MM/DD" DateFormat="@(new DateFormat{
        Delimiter = '/',
        Format = new char[] { 'Y', 'm', 'd' }
    })" InputType="InputType.Date" />

// Phone number formatting
<Cleave Placeholder="Phone Number" CountryCode="CountryCode.CA" InputType="InputType.PhoneNumber" />

// Credit card formatting
<Cleave Placeholder="Credit Card" InputType="InputType.CreditCard" />

Notes

This is still a WIP, although it does work well, there are always improvements to be made.

Please contribute if you have any suggestions/recommendations.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.0.102 5,061 4/6/2020
1.0.101 494 3/5/2020
1.0.100 472 3/5/2020
1.0.99 455 3/3/2020
1.0.98 471 3/3/2020
1.0.97 483 3/3/2020
1.0.96 476 3/3/2020
1.0.95 478 2/29/2020
1.0.94 474 2/29/2020
1.0.93 458 2/28/2020
1.0.92 466 2/28/2020
1.0.91 486 2/28/2020
1.0.0-20200228.28 275 2/28/2020
1.0.0-20200228.27 264 2/28/2020
1.0.0-20200228.26 261 2/28/2020

Initial realease, working as intended