Ember.js 如何在emberJS的jstree节点菜单上的悬停操作中添加创建、编辑、删除引导图标

Ember.js 如何在emberJS的jstree节点菜单上的悬停操作中添加创建、编辑、删除引导图标,ember.js,jstree,Ember.js,Jstree,我不知道我该怎么做才能让它工作。我在ember.js中使用它 我在我的ember js项目中使用了ember cli jstree插件,但我能够在节点菜单上的悬停操作中添加创建、编辑、删除引导图标。您将获得节点对象、数据和事件作为eventDidHoverNode操作的参数 eventDidHoverNode: "hoverAction", actions: { hoverAction: function(){ // How can I apply the buttons to

我不知道我该怎么做才能让它工作。我在ember.js中使用它


我在我的ember js项目中使用了ember cli jstree插件,但我能够在节点菜单上的悬停操作中添加创建、编辑、删除引导图标。

您将获得节点对象、数据和事件作为eventDidHoverNode操作的参数

eventDidHoverNode: "hoverAction",

actions: {
   hoverAction: function(){
     // How can I apply the buttons to the view from here?
   },
“treeObject”是为ember jstree组件发送的变量

hoverAction(node, data, event) {
    //you can set the icon using the below code
    this.get("treeObject").jstree(true).set_icon(node.id, "changed-icon");    
}

在您的
hoverAction
函数中,
console.log(arguments)
的输出是什么?实际上,我正在尝试在hoverAction的每个节点中添加图标。请帮助我提供任何建议。
hoverAction(node, data, event) {
    //you can set the icon using the below code
    this.get("treeObject").jstree(true).set_icon(node.id, "changed-icon");    
}
{{ember-jstree
 ............
 treeObject=treeObject
 }}