label String|Function|Object (default: null)

Adds a label before the timepicker. If the timepicker has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

Example - create a label from a string

<input id="timepicker" />
<script>
    $("#timepicker").kendoTimePicker({
        label: "Date"
    })
</script>

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

Example - create a label from a function

<input id="timepicker" />
<script>
    $("#timepicker").kendoTimePicker({
            label: function() {
                return "Date";
            }
    })
</script>
In this article