label.content String|Function (default: "")

Sets the inner HTML of the label.

Example - create a label from a string

<input id="maskedtextbox" />
<script>
    $("#maskedtextbox").kendoMaskedTextBox({
        label: {
            content: "First name"
        }
    });
</script>

The function context (available via the this keyword) will be set to the widget instance.

Example - create a label from a function

<input id="maskedtextbox" />
<script>
    $("#maskedtextbox").kendoMaskedTextBox({
        label: {
            content: function() {
                return "First name";
            }
        }
    });
</script>
In this article
Not finding the help you need? Improve this article