Class NumericTextBox
Inheritance
System.Object
NumericTextBox
Assembly: Syncfusion.EJ2.dll
Syntax
public class NumericTextBox : EJTagHelper
Constructors
NumericTextBox()
Declaration
Properties
Blur
Triggers when the NumericTextBox got focus out.
Declaration
public string Blur { get; set; }
Property Value
Type |
Description |
System.String |
|
Change
Triggers when the value of the NumericTextBox changes.
Declaration
public string Change { get; set; }
Property Value
Type |
Description |
System.String |
|
ClassName
Declaration
protected override string ClassName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Created
Triggers when the NumericTextBox component is created.
Declaration
public string Created { get; set; }
Property Value
Type |
Description |
System.String |
|
CssClass
Gets or Sets the CSS classes to root element of the NumericTextBox which helps to customize the
complete UI styles for the NumericTextBox component.
Declaration
public string CssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Currency
Specifies the currency code to use in currency formatting.
Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.
Declaration
public string Currency { get; set; }
Property Value
Type |
Description |
System.String |
|
Decimals
Specifies the number precision applied to the textbox value when the NumericTextBox is focused.
For more information on decimals, refer to
decimals.
Declaration
public double Decimals { get; set; }
Property Value
Type |
Description |
System.Double |
|
Destroyed
Triggers when the NumericTextBox component is destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type |
Description |
System.String |
|
Enabled
Sets a value that enables or disables the NumericTextBox control.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnablePersistence
Enable or disable persisting NumericTextBox state between page reloads. If enabled, the value
state will be persisted.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
FloatLabelType
The acts as a label
and floats above the NumericTextBox based on the below values.
Possible values are:
Never
- Never floats the label in the NumericTextBox when the placeholder is available.
Always
- The floating label always floats above the NumericTextBox.
Auto
- The floating label floats above the NumericTextBox after focusing it or when enters the value in it.
Declaration
public FloatLabelType FloatLabelType { get; set; }
Property Value
Focus
Triggers when the NumericTextBox got focus in.
Declaration
public string Focus { get; set; }
Property Value
Type |
Description |
System.String |
|
For
Declaration
public override ModelExpression For { get; set; }
Property Value
Type |
Description |
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
|
Overrides
Format
Specifies the number format that indicates the display format for the value of the NumericTextBox.
For more information on formats, refer to
formats.
Declaration
public string Format { get; set; }
Property Value
Type |
Description |
System.String |
|
HtmlAttributes
You can add the additional html attributes such as disabled, value etc., to the element.
If you configured both property and equivalent html attribute then the component considers the property value.
{% codeBlock src='numerictextbox/htmlAttributes/index.md' %}{% endcodeBlock %}
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
Description |
System.Object |
|
IsFor
Declaration
protected override bool IsFor { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type |
Description |
System.String |
|
Max
Specifies a maximum value that is allowed a user can enter.
For more information on max, refer to
max.
Declaration
public object Max { get; set; }
Property Value
Type |
Description |
System.Object |
|
Min
Specifies a minimum value that is allowed a user can enter.
For more information on min, refer to
min.
Declaration
public object Min { get; set; }
Property Value
Type |
Description |
System.Object |
|
NameSpace
Declaration
protected override string NameSpace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Placeholder
Gets or sets the string shown as a hint/placeholder when the NumericTextBox is empty.
It acts as a label and floats above the NumericTextBox based on the
Declaration
public string Placeholder { get; set; }
Property Value
Type |
Description |
System.String |
|
Readonly
Sets a value that enables or disables the readonly state on the NumericTextBox. If it is true,
NumericTextBox will not allow your input.
Declaration
public bool Readonly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ShowClearButton
Specifies whether to show or hide the clear icon.
Declaration
public bool ShowClearButton { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ShowSpinButton
Specifies whether the up and down spin buttons should be displayed in NumericTextBox.
Declaration
public bool ShowSpinButton { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Step
Specifies the incremental or decremental step size for the NumericTextBox.
For more information on step, refer to
step.
Declaration
public double Step { get; set; }
Property Value
Type |
Description |
System.Double |
|
StrictMode
Specifies a value that indicates whether the NumericTextBox control allows the value for the specified range.
If it is true, the input value will be restricted between the min and max range.
The typed value gets modified to fit the range on focused out state.
Else, it allows any value even out of range value,
At that time of wrong value entered, the error class will be added to the component to highlight the error.
{% codeBlock src='numerictextbox/strictMode/index.md' %}{% endcodeBlock %}
Declaration
public bool StrictMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
TagName
Declaration
protected override string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ValidateDecimalOnType
Specifies whether the decimals length should be restricted during typing.
Declaration
public bool ValidateDecimalOnType { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Value
Sets the value of the NumericTextBox.
Declaration
public object Value { get; set; }
Property Value
Type |
Description |
System.Object |
|
Width
Specifies the width of the NumericTextBox.
Declaration
public string Width { get; set; }
Property Value
Type |
Description |
System.String |
|