MaskedTextBoxLabelSettingsBuilder
Methods
Content(System.String)
Sets the inner HTML of the label.
Parameters
value - System.String
The value that configures the label content.
Example
@(Html.Kendo().MaskedTextBox()
.Name("maskedTextBox")
.Label(l => l.Content("Phone number"))
)
ContentHandler(System.String)
Sets the inner HTML of the label.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().MaskedTextBox()
.Name("maskedTextBox")
.Label(l => l.ContentHandler("getLabel"))
)
<script>
function getLabel() {
return "Enter phone number:";
}
</script>
Floating(System.Boolean)
If set to true, the floating label functionality of the MaskedTextBox will be enabled.
Parameters
value - System.Boolean
The value that configures the floating label.
Example
@(Html.Kendo().MaskedTextBox()
.Name("maskedTextBox")
.Label(l => l.Content("Phone number").Floating(true))
)