NumericTextBoxLabelSettingsBuilder

Methods

Content(System.String)

Sets the inner HTML of the label.

Parameters

value - System.String

The value that configures the label content.

Example

Razor
 
            @(Html.Kendo().NumericTextBox()
                .Name("numericTextBox")
                .Label(l => l.Content("Age"))
            )
             

ContentHandler(System.String)

Sets the inner HTML of the label.

Parameters

handler - System.String

The name of the JavaScript function that will return the label content.

Example

Razor
 
            @(Html.Kendo().NumericTextBox()
                .Name("numericTextBox")
                .Label(l => l.ContentHandler("getContentLabel"))
            )
            <script>
               function getContentLabel() {
                    return "Age";
                }
            </script>
             

Floating(System.Boolean)

If the option is enabled, the component will be wrapped in a container that will allow the floating label functionality.

Parameters

value - System.Boolean

The value that configures the floating label.

Example

Razor
 
            @(Html.Kendo().NumericTextBox()
                .Name("numericTextBox")
                .Label(l => l.Content("Age").Floating(true))
            )