[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.InputNumberTagHelper

InputNumberTagHelper Class

ITagHelper implementation for InputNumber.

Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
[HtmlTargetElement("c1-input-number")]
public class InputNumberTagHelper : FormInputBaseTagHelper<InputNumber>, ITagHelper, ITagHelperComponent, ITemplateTagHelper

Constructors

Name Description
InputNumberTagHelper()

Properties

Name Description
Format

Configurates Format. Sets the format used to display the number being edited (see Globalize).

HandleWheel

Configurates HandleWheel. Sets a value that determines whether the user can edit the value using the mouse wheel.

InputType

Configurates InputType. Sets the "type" attribute of the HTML input element hosted by the control.

InvalidInput

Configurates the OnClientInvalidInput client event. Occurs when invalid input is detected.

IsReadOnly

Configurates IsReadOnly. Sets a value that indicates whether the user can modify the control value using the mouse and keyboard.

IsRequired

Configurates IsRequired. Sets a value indicating whether the control value must be a number or whether it can be set to null (by deleting the content of the control).

Max

Configurates Max. Sets the largest number that the user can enter.

Min

Configurates Min. Sets the smallest number that the user can enter.

Placeholder

Configurates Placeholder. Sets the string shown as a hint when the control is empty.

RepeatButtons

Configurates RepeatButtons. Sets a value that determines whether the spinner buttons should act as repeat buttons, firing repeatedly as the button remains pressed.

ShowSpinner

Configurates ShowSpinner. Sets a value indicating whether the control displays spinner buttons to increment or decrement the value (the step property must be set to a non-zero value).

Step

Configurates Step. Sets the amount to add or subtract to the Value property when the user clicks the spinner buttons.

Text

Configurates Text. Sets the text shown in the control.

TextChanged

Configurates the OnClientTextChanged client event. Occurs when the value of the Text property changes.

Value

Configurates Value. Sets the current value of the control.

ValueChanged

Configurates the OnClientValueChanged client event. Occurs when the value of the Value property changes.

Methods

Name Description
ProcessAttributes(TagHelperContext, object)

Processes the attributes set in the taghelper.