NumericInput
It is declared like this:@(Html.Awe().NumericInput(new NumericInputOpt { Name = "NumericDec", AllowDecimals = true, Value = 1.2 }))
NumericInputOpt
NumericInput optionsAllowDecimals | Allow decimals |
AllowNegative | Allow negative numbers without specifying min value |
ClearBtn | Clear button |
CssClass | Css class |
Decimals | Number of decimals, zero for unlimited |
Enabled | Enabled |
FieldAttr | Html attributes for the field element |
FormatFunc | JS func used for formatting display value f(value):displayValue |
InputAttr | Html attributes for the input element |
Max | Maximum value |
Min | Minimum value |
Name | The name of the control, For editors also the name of the form field and the System.Web.Mvc.ViewDataDictionary key that is used to look up the value |
Placeholder | editor input placeholder |
Prefix | Set Prefix for the html id (use to achieve unique ids for elements with same name) |
ShowSpinners | Display spin buttons |
Step | Step value to increment or decrement by |
Value | The value of the element. If this value is null, the value of the element is retrieved from the System.Web.Mvc.ViewDataDictionary object. If no value exists there, the value is retrieved from the System.Web.Mvc.ModelStateDictionary object. |
Comments