BlazorCleave 1.0.91
See the version list below for details.
dotnet add package BlazorCleave --version 1.0.91
NuGet\Install-Package BlazorCleave -Version 1.0.91
<PackageReference Include="BlazorCleave" Version="1.0.91" />
paket add BlazorCleave --version 1.0.91
#r "nuget: BlazorCleave, 1.0.91"
// Install BlazorCleave as a Cake Addin #addin nuget:?package=BlazorCleave&version=1.0.91 // Install BlazorCleave as a Cake Tool #tool nuget:?package=BlazorCleave&version=1.0.91
BlazorCleave
A Blazor class library that wraps the functionality of Cleave.js.
Usage
In a Blazor Server or Blazor WebAssembly project, add a reference to the
BlazorCleave
package.In your
_Imports.razor
file, add the following statements:
@using BlazorCleave
@using BlazorCleave.Data
- In your
_Host.cshtml
(for Blazor Server) orindex.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 is always improvements to be made.
Please contribute if you have any suggestions/reccomendations.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Product | Versions 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. |
.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. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Components (>= 3.0.0)
- Microsoft.AspNetCore.Components.Web (>= 3.0.0)
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 | 7,887 | 4/6/2020 |
1.0.101 | 522 | 3/5/2020 |
1.0.100 | 514 | 3/5/2020 |
1.0.99 | 478 | 3/3/2020 |
1.0.98 | 495 | 3/3/2020 |
1.0.97 | 532 | 3/3/2020 |
1.0.96 | 513 | 3/3/2020 |
1.0.95 | 510 | 2/29/2020 |
1.0.94 | 497 | 2/29/2020 |
1.0.93 | 482 | 2/28/2020 |
1.0.92 | 488 | 2/28/2020 |
1.0.91 | 537 | 2/28/2020 |
1.0.0-20200228.28 | 285 | 2/28/2020 |
1.0.0-20200228.27 | 275 | 2/28/2020 |
1.0.0-20200228.26 | 270 | 2/28/2020 |