[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.InputNumberBuilder

InputNumberBuilder Class

Defines a builder to configurate InputNumber.

Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public class InputNumberBuilder : FormInputBaseBuilder<InputNumber, InputNumberBuilder>, IHtmlString

Constructors

Name Description
InputNumberBuilder(InputNumber)

Creates one InputNumberBuilder instance to configurate component.

Methods

Name Description
Format(string)

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

HandleWheel(bool)

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

InputType(string)

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

IsReadOnly(bool)

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

IsRequired(bool)

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(double?)

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

Min(double?)

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

OnClientInvalidInput(string)

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

OnClientTextChanged(string)

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

OnClientValueChanged(string)

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

Placeholder(string)

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

RepeatButtons(bool)

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

ShowSpinner(bool)

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(double)

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

Text(string)

Configurates Text. Sets the text shown in the control.

Value(double?)

Configurates Value. Sets the current value of the control.

Extension Methods