Defines the fluent interface for configuring the NumericTextBox<T> component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class NumericTextBoxBuilder<T> : WidgetBuilderBase<NumericTextBox<T>, NumericTextBoxBuilder<T>>, IHtmlString where T : struct
Inheritance: objectWidgetBuilderBase<NumericTextBox<T>, NumericTextBoxBuilder<T>>NumericTextBoxBuilder<T>
Implements:
Inherited Members
Constructors
Methods
If the option is enabled, the Min() and Max() options are defined, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.
public NumericTextBoxBuilder<T> AutoAdjust(bool value)
The value that enables or disables the option
Returns:Specifies the culture info used by the NumericTextBox.
public NumericTextBoxBuilder<T> Culture(string culture)
The value that configures the culture.
Returns:Specifies the number precision applied to the component's value when the NumericTextBox is focused. If the option is not set, the precision is defined by the current culture. If the user enters a number with a greater precision than the currently configured precision, the component's value will be rounded. For example, if Decimals(2) and the user inputs 12.346, the value will become 12.35. If Decimals(2) and the user inputs 12.99, the value will become 13.00.
public NumericTextBoxBuilder<T> Decimals(int decimals)
The value that configures the number precision.
Returns:Specifies the title of the NumericTextBox decrease button. The default title on hover is "Decrease value".
public NumericTextBoxBuilder<T> DecreaseButtonTitle(string title)
The value that configures the title.
Returns:Enables or disables the NumericTextBox.
public NumericTextBoxBuilder<T> Enable(bool value)
The value that enables or disables the component.
Returns:Configures the handled client-side events of the NumericTextBox.
public NumericTextBoxBuilder<T> Events(Action<NumericTextBoxEventBuilder> EventsAction)
The action that configures the available events.
Returns:Specifies the factor by which the value is multiplied. The obtained result is used as an edit value. For example, if "15" is entered in the NumericTextBox and the factor value is set to 100, the visual value will be 1500. On blur, the visual value will be divided by 100, thus scaling the component's value to the original proportion.
public NumericTextBoxBuilder<T> Factor(double value)
The value that configures the factor.
Returns:Sets a value that controls how the color is applied.
public NumericTextBoxBuilder<T> FillMode(FillMode value)
The enum value that configures the fill mode.
Returns:Specifies the number format used when the NumericTextBox is not focused.
public NumericTextBoxBuilder<T> Format(string format)
The value that configures the format.
Returns:Specifies the title of the NumericTextBox increase button. The default title on hover is "Increase value".
public NumericTextBoxBuilder<T> IncreaseButtonTitle(string title)
The value that configures the title.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public NumericTextBoxBuilder<T> InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Adds a label before the input.
public NumericTextBoxBuilder<T> Label(Action<NumericTextBoxLabelSettingsBuilder> configurator)
The action that configures the label settings.
Returns:Specifies the maximum value the user can enter.
public NumericTextBoxBuilder<T> Max(T? max)
The value that configures the maximum possible value.
Returns:Specifies the smallest value the user can enter.
public NumericTextBoxBuilder<T> Min(T? min)
The value that configures the minimum possible value.
Returns:Sets the text that will be displayed when the NumericTextBox is empty.
public NumericTextBoxBuilder<T> Placeholder(string placeholder)
The value that configures the maximum possible value.
Returns:Defines the configuration for the prefix adornment of the component.
public NumericTextBoxBuilder<T> PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns:Specifies whether the decimals length must be restricted during typing. The length of the fraction is defined by the Decimals() value.
public NumericTextBoxBuilder<T> RestrictDecimals(bool restrictDecimals)
The value that enables or disables the option.
Returns:Specifies whether the value must be rounded or truncated. The length of the fraction is defined by the Decimals() value.
public NumericTextBoxBuilder<T> Round(bool round)
The value that enables or disables the option.
Returns:Sets a value that controls the border radius of the component.
public NumericTextBoxBuilder<T> Rounded(Rounded? value)
The enum value that configures the border radius.
Returns:Controls whether the value of the input must be selected after the component is focused.
Controls whether the value of the input must be selected after the component is focused.
public NumericTextBoxBuilder<T> SelectOnFocus(bool value)
The value that enables or disables the option.
Returns:Sets a value that controls the size of the component.
public NumericTextBoxBuilder<T> Size(ComponentSize? value)
The enum value that configures the size.
Returns:Specifies whether the up and down spin buttons must be rendered.
public NumericTextBoxBuilder<T> Spinners(bool value)
The value that shows or hides the spin buttons.
Returns:Specifies the value used to increment or decrement NumericTextBox value.
public NumericTextBoxBuilder<T> Step(T step)
The value that configures the step.
Returns:Defines the configuration for the suffix adornment of the component.
public NumericTextBoxBuilder<T> SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:Sets the initial value of the NumericTextBox.
public NumericTextBoxBuilder<T> Value(T? value)
The value that configures the initial value.
Returns: