Hello,
I installed the npm package “dhtmlx-suite” in a vue.js project and tried to implement a tree view with the given samples. In the console I received the following message “Cannot read property ‘isIE6’ of undefined”. Could you please help me to solve this problem.
“TreeView.vue”
template>
<div id="treeView"></div>
</template>
<script>
import "dhtmlx-suite/sources/dhtmlxTreeView/codebase/dhtmlxtreeview.js";
export default {
name: "TreeView",
data() {
return {
// treeViewObject: new dhtmlXTreeViewObject("treeView")
treeViewObject: null
};
},
mounted() {
this.initializeTreeView();
},
methods: {
initializeTreeView() {
// this.treeViewObject.loadStruct("treeView.json");
this.treeViewObject = new dhtmlxTreeViewObject({
parent: "treeView",
item: "treeview.json"
});
}
}
};
</script>
<style>
@import "~dhtmlx-suite/sources/dhtmlxTreeView/codebase/skins/dhtmlxtreeview_material.css";
</style>
“Management.vue”
<template>
<div>
<tree-view></tree-view>
</div>
</template>
Best Regards
A. Mehlen