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.
$ dotnet add package SmartUI.FormsKey Features � Important Notice � Installation � How To Use � License You may also like �
(int, int?, float, float?, double, double?, decimal, decimal?, double, double?, UInt16, UInt32, UInt64).OnChange() along with @bind-valueOnChange() along with @bind-valueThis 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
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:
_Imports.razor file.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" />
This project is licensed under the MIT License - see the LICENSE file for details