取消注释以在“powerbivisualsplayground"中查看您的插件插件 [英] uncomment it to see your plugin in "powerbivisualsplayground" plugins
问题描述
如何在PowerBIVisualsPlayground"插件列表中查看我的插件!
How Can i see my plugin in "PowerBIVisualsPlayground" plugins list !
因此,当我创建 iVisual 时,它创建了一些默认代码,在插件列表中显示 取消注释以在powerbivisualsplayground"插件中查看您的插件
So when i create a iVisual it created some default code where on the plugin list it says uncomment it to see your plugin in "powerbivisualsplayground" plugins
所以我跟着它并取消注释代码---
So i followed it and uncomment the code ---
i have created a IVisual i the PowerBI visual ---
/* creating ivisualplugin that is used to represent ivisual. */
//uncomment it to see your plugin in "powerbivisualsplayground" plugins list
//remember to finally move it to plugins.ts
module powerbi.visuals.plugins {
export var newvisual: ivisualplugin = {
name: 'newvisual',
capabilities: newvisual.capabilities,
create: () => new newvisual()
};
}
我已取消注释默认代码以查看我的 Visual 名称列表或 PowerBI 插件列表,但我仍然无法在 PowerBIVisualsPlayground 插件列表中看到我的插件名称.
i have uncommented the default code to see my Visual name list o the PowerBI Plugin list but still i can not see my plugin name in the PowerBIVisualsPlayground" plugins list.
我也尝试将我的代码移动到 plugins.ts 但仍然没有结果!!
I have also tried to move my code to plugins.ts but still no result !!
export var newvisual: ivisualplugin = {
name: 'newvisual',
watermarkKey: 'newvisual',
capabilities: newvisual.capabilities,
create: () => new newvisual()
};
有谁知道我做错了什么!
Do anyone knows what i am doing wrong !
所以我的问题又来了
**How can i see my plugin name in the PowerBI Visual plugin List !**
任何形式的建议或帮助都会非常可观!谢谢
Any kind of advice or help will be really appreciable ! Thanks
推荐答案
你的代码有几个错误.
在第一行 ivisualplugin
应该是 IVisualPlugin
将您的类和功能名称从 newvisual
更改为 Newvisual
Change your class and capabilities name from newvisual
to Newvisual
所以答案是:
export var newvisual: IVisualPlugin = {
name: 'newvisual',
capabilities: Newvisual.capabilities,
create: () => new Newvisual()
};
希望对你有所帮助.
这篇关于取消注释以在“powerbivisualsplayground"中查看您的插件插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!