SmartUI.Forms
1.0.0
See the version list below for details.
dotnet add package SmartUI.Forms --version 1.0.0
NuGet\Install-Package SmartUI.Forms -Version 1.0.0
<PackageReference Include="SmartUI.Forms" Version="1.0.0" />
paket add SmartUI.Forms --version 1.0.0
#r "nuget: SmartUI.Forms, 1.0.0"
// Install SmartUI.Forms as a Cake Addin
#addin nuget:?package=SmartUI.Forms&version=1.0.0
// Install SmartUI.Forms as a Cake Tool
#tool nuget:?package=SmartUI.Forms&version=1.0.0
<h1 align="center">SmartUI.Forms</h1>
<h4 align="center">The light weight Form elements Components (e.g. Input Number, Input Text, DropDownList, MultiSelect and more) supports more additional features than the existing in Blazor.</h4>
<p align="center"> <a href="#key-features">Key Features</a> � <a href="#key-features">Important Notice</a> � <a href="#how-to-use">Installation</a> � <a href="#how-to-use">How To Use</a> � <a href="#license">License</a> <a href="#you-may-also-like">You may also like</a> � </p>
Key Features
- Input Number
- InputNumber now support following types ⇒
(int, int?, float, float?, double, double?, decimal, decimal?, double, double?, UInt16, UInt32, UInt64)
. - Validation.
- two way binding on key press.
OnChange()
along with@bind-value
- InputNumber now support following types ⇒
- Input Text
- two way binding on key press.
- Validation.
OnChange()
along with@bind-value
Important Notice
This project is still under active development! Currently an alpha version is available on NuGet, but keep in mind that a later version might contain breaking changes.
### Planned work:
- [] Code cleanup
- [] Better documentation
Installation
Install the NuGet package:
> dotnet add package SmartUI.Forms OR PM> Install-Package SmartUI.Forms
Use the
--version
option to specify a specific version to install.Or use the build in NuGet package manager of your favorite IDEA. Simply search for
SmartUI.Forms
, select a version and hit install.Import the components:
Add the following using statement
@using SmartUI.Forms
to one of the following:- For global import add it to your
_Imports.razor
file. - For a scoped import add it to your desired Blazor component.
- For global import add it to your
How To Use
InputNumber
-- Basic --
<SmartInputNumber TValue="int?" @bind-Value="person.IntNumber" Placeholder="Enter Intger Number" />
-- Two way binding on KeyPress --
<SmartInputNumber TValue="float" @bind-Value="person.FloatNumber" IsChangeOnKeyPress="true" Placeholder="Enter Float Number" />
-- OnChange() event along with @bind-value --
<SmartInputNumber TValue="float" @bind-Value="person.FloatNumber" @OnChange="(e) => Console.WriteLine(e)"
IsChangeOnKeyPress="true" Placeholder="Enter Float Value" />
InputText
-- Basic --
<SmartInputText @bind-Value="person.SampleText" Placeholder="Enter SampleText Here" />
-- Two way binding on KeyPress --
<SmartInputText @bind-Value="person.SampleText" IsChangeOnKeyPress="true" Placeholder="Enter SampleText Here" />
-- OnChange() event along with @bind-value --
<SmartInputText @bind-Value="person.SampleText" IsChangeOnKeyPress="true" OnChange="(e) => Console.WriteLine(e)"
Placeholder="Enter SampleText Here" />
License
This project is licensed under the MIT License - see the LICENSE file for details
You may also like...
- SmartUI.Grid - The light weight DataTable created with Blazor and support Filter, Sort, Pagination and more Features.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
-
net5.0
- Microsoft.AspNetCore.Components.Web (>= 5.0.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.