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

Sets the inner HTML of the label.

Example - create a label from a string

<input id="customers">
<script>
$("#customers").kendoDropDownTree({
    dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
    ],
    dataTextField: "name",
    dataValueField: "id",
    label: { content: "Fruits" }
});
</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="customers">
<script>
$("#customers").kendoDropDownTree({
    dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
    ],
    dataTextField: "name",
    dataValueField: "id",
    label: {
        content: function() {
            return "Fruits";
        }
    }
});
</script>
In this article