NumericInput

It is declared like this:
@(Html.Awe().NumericInput(new NumericInputOpt { Name = "NumericDec", AllowDecimals = true, Value = 1.2 }))

NumericInputOpt

NumericInput options
AllowDecimalsAllow decimals
AllowNegativeAllow negative numbers without specifying min value
ClearBtnClear button
CssClassCss class
DecimalsNumber of decimals, zero for unlimited
EnabledEnabled
FieldAttrHtml attributes for the field element
FormatFuncJS func used for formatting display value f(value):displayValue
InputAttrHtml attributes for the input element
MaxMaximum value
MinMinimum value
NameThe 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
Placeholdereditor input placeholder
PrefixSet Prefix for the html id (use to achieve unique ids for elements with same name)
ShowSpinnersDisplay spin buttons
StepStep value to increment or decrement by
ValueThe 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
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .