New to Kendo UI for jQueryStart a free 30-day trial

Label

configuration

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.

label

String|Function|Object

Default: null

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

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

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

label.content

String|Function

Sets the inner HTML of the label.

Default: ""

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

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

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

If set to true, the widget will be wrapped in a container that will allow the fl oating label functionality.

Important: The value meth

od does not trigger the focusout event of the timepicker. This can affect the floating label functionality. To overcome this behavior, manually invoke the refresh method of the Floating La bel: $("#timepicker").data("kendoTimePicker").label.floatingLabel.refresh( );

Default: false

<input id="timepicker" />
<script>
    $("#timepicker").kendoTimePicker({
            label: {
                content: "Date",
                floating: true
            }
    })
</script>
In this article
labellabel.contentlabel.floating
Not finding the help you need?
Contact Support