Defines the fluent API for configuring the Kendo UI NumericTextBox
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class NumericTextBoxBuilder<T> : MvvmWidgetBuilderBase<NumericTextBox<T>, NumericTextBoxBuilder<T>>, IHtmlContent where T : struct
Inheritance: objectHelperResultWidgetBuilderBase<NumericTextBox<T>, NumericTextBoxBuilder<T>>MvvmWidgetBuilderBase<NumericTextBox<T>, NumericTextBoxBuilder<T>>NumericTextBoxBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the NumericTextBoxBuilder<T> class.
Methods
If this property is enabled and you have configured min and/or max values, 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 for AutoAdjust
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the culture info used by the component. A valid kendo culture file must be added to the page in order for the example to work. <script src="https://cdn.jsdelivr.net/npm/@progress/kendo-ui@{version}/umd/cultures/kendo.culture.de-DE.min.js"></script>
public NumericTextBoxBuilder<T> Culture(string value)
The value for Culture
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the number precision applied to the widget value and when the NumericTextBox is focused. If not set, the precision defined by the current culture is used. If the user enters a number with a greater precision than is currently configured, the widget value will be rounded. For example, if decimals is 2 and the user inputs 12.346, the value will become 12.35. If decimals is 1 the user inputs 12.99, the value will become 13.00.Compare with the format property.
public NumericTextBoxBuilder<T> Decimals(int value)
The value for Decimals
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the text of the tooltip on the down arrow.
public NumericTextBoxBuilder<T> DownArrowText(string value)
The value for DownArrowText
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Enables or disables the textbox
public NumericTextBoxBuilder<T> Enable(bool value)
The value for Enable
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Configures the client-side events.
public NumericTextBoxBuilder<T> Events(Action<NumericTextBoxEventBuilder> configurator)
The client events action.
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the factor by which the value is multiplied. The obtained result is used as edit value. So, if 15 as string 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 widget value to the original proportion.
public NumericTextBoxBuilder<T> Factor(double value)
The value for Factor
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Sets a value controlling how the color is applied.
public NumericTextBoxBuilder<T> FillMode(FillMode value)
The value for FillMode
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the number format used when the widget is not focused. Check this page for all valid number formats.Compare with the decimals property.
public NumericTextBoxBuilder<T> Format(string value)
The value for Format
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
public NumericTextBoxBuilder<T> InputMode(string value)
The value for InputMode
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public NumericTextBoxBuilder<T> Label(Action<NumericTextBoxLabelSettingsBuilder<T>> configurator)
The NumericTextBoxLabelSettingsBuilder<T> for the label setting.
Returns:Returns the current instance of NumericTextBoxBuilder<T> .
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public NumericTextBoxBuilder<T> Label(string label)
The label.
Returns:Returns the current instance of NumericTextBoxBuilder<T> .
Specifies the largest value the user can enter.
public NumericTextBoxBuilder<T> Max(T? value)
The value for Max
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the smallest value the user can enter.
public NumericTextBoxBuilder<T> Min(T? value)
The value for Min
Returns:Returns the current NumericTextBoxBuilder<T> instance.
The hint displayed by the widget when it is empty. Not set by default.
public NumericTextBoxBuilder<T> Placeholder(string value)
The value for Placeholder
Returns:Returns the current NumericTextBoxBuilder<T> instance.
The configuration for the prefix adornment of the component.
public NumericTextBoxBuilder<T> PrefixOptions(Action<NumericTextBoxPrefixOptionsSettingsBuilder<T>> configurator)
The NumericTextBoxPrefixOptionsSettingsBuilder<T> for the prefixoptions setting.
Returns:Returns the current instance of NumericTextBoxBuilder<T> .
Specifies whether the decimals length should be restricted during typing. The length of the fraction is defined by the decimals value.
public NumericTextBoxBuilder<T> RestrictDecimals()
Returns the current NumericTextBoxBuilder<T> instance.
Specifies whether the decimals length should be restricted during typing. The length of the fraction is defined by the decimals value.
public NumericTextBoxBuilder<T> RestrictDecimals(bool value)
The value for RestrictDecimals
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies whether the value should be rounded or truncated. The length of the fraction is defined by the decimals value.
public NumericTextBoxBuilder<T> Round(bool value)
The value for Round
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Sets a value controlling the border radius.
public NumericTextBoxBuilder<T> Rounded(Rounded value)
The value for Rounded
Returns:Returns the current NumericTextBoxBuilder<T> instance.
When set to true, the text of the input will be selected after the widget is focused.
public NumericTextBoxBuilder<T> SelectOnFocus()
Returns the current NumericTextBoxBuilder<T> instance.
When set to true, the text of the input will be selected after the widget is focused.
public NumericTextBoxBuilder<T> SelectOnFocus(bool value)
The value for SelectOnFocus
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Sets the size of the component.
public NumericTextBoxBuilder<T> Size(ComponentSize value)
The value for Size
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies whether the up and down spin buttons should be rendered
public NumericTextBoxBuilder<T> Spinners(bool value)
The value for Spinners
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the value used to increment or decrement widget value.
public NumericTextBoxBuilder<T> Step(T? value)
The value for Step
Returns:Returns the current NumericTextBoxBuilder<T> instance.
The configuration for the suffix adornment of the component.
public NumericTextBoxBuilder<T> SuffixOptions(Action<NumericTextBoxSuffixOptionsSettingsBuilder<T>> configurator)
The NumericTextBoxSuffixOptionsSettingsBuilder<T> for the suffixoptions setting.
Returns:Returns the current instance of NumericTextBoxBuilder<T> .
Specifies the text of the tooltip on the up arrow.
public NumericTextBoxBuilder<T> UpArrowText(string value)
The value for UpArrowText
Returns:Returns the current NumericTextBoxBuilder<T> instance.
Specifies the value of the NumericTextBox widget.
public NumericTextBoxBuilder<T> Value(T? value)
The value for Value
Returns:Returns the current NumericTextBoxBuilder<T> instance.