我应该为 ember-cli-jstree 调用几个 plug-in 的方式的小问题
Small issue with the way I should call several plug-in for ember-cli-jstree
正如标题所说,我有一个小问题。我不知道如何调用 ember-cli-jstree 中的多个 plug-in。现在,我有
export default Ember.Component.extend({
"plugins" : "dnd",
data:
[...],
});
这里,我可以使用plug-in拖放,但是如果我想使用多个plug-in,我应该怎么写呢?
我已经试过了:
"plugins" : "dnd", "type",
"plugins" : {"dnd", "type"},
"plugins" : ["dnd", "type"],
"plugins" : "dnd" + "type",
可能是我脑子笨什么的,但是我想不通。
我刚刚找到答案,你必须这样写:
export default Ember.Component.extend({
"plugins" : "dnd, types",
data:
[...],
});
正如标题所说,我有一个小问题。我不知道如何调用 ember-cli-jstree 中的多个 plug-in。现在,我有
export default Ember.Component.extend({
"plugins" : "dnd",
data:
[...],
});
这里,我可以使用plug-in拖放,但是如果我想使用多个plug-in,我应该怎么写呢?
我已经试过了:
"plugins" : "dnd", "type",
"plugins" : {"dnd", "type"},
"plugins" : ["dnd", "type"],
"plugins" : "dnd" + "type",
可能是我脑子笨什么的,但是我想不通。
我刚刚找到答案,你必须这样写:
export default Ember.Component.extend({
"plugins" : "dnd, types",
data:
[...],
});