setOptions

Sets the widget options. Changes are cumulative.

Parameters

options Object

The treeMap settings to update.

Example - change the treeMap theme

<div id="treeMap"></div>
<script>
$("#treeMap").kendoTreeMap({
    dataSource: {
        data: [{
            name: "foo",
            value: 1,
            items: [{
                name: "bar",
                value: 1
            },{
                name: "baz",
                value: 1
            }]
        }],
        schema: {
            model: {
                children: "items"
            }
        }
    },
    valueField: "value",
    textField: "name"
});

var treeMap = $("#treeMap").getKendoTreeMap();
treeMap.setOptions({ type: "horizontal" });
</script>
In this article