Forum Discussion
Ben-Dev
4 years agoHelper II
Custom Connector Icons
Hello,
When creating a custom connector, we have the option of providing icons. When icons are configured, the docs state that the icon configuration record should contain both fields "Icon16" and "Icon32", each of which should be set to a list of icons.
HelloWorld.Icons = [
Icon16 = { Extension.Contents("HelloWorld16.png"), Extension.Contents("HelloWorld20.png"), Extension.Contents("HelloWorld24.png"), Extension.Contents("HelloWorld32.png") },
Icon32 = { Extension.Contents("HelloWorld32.png"), Extension.Contents("HelloWorld40.png"), Extension.Contents("HelloWorld48.png"), Extension.Contents("HelloWorld64.png") }
];
Two questions on this:
- What differentiates "Icon16" and "Icon32"?
My guess would have been that I should create both 16 bit and 32 bit versions of my icons and then list each under the appropriate field. However, all the starter icons the SDK's new project template provides are 32 bit, even the ones it puts in "Icon16"—so maybe this guess is incorrect. - The docs don't say anything about the number of icons to list for each category (for "Icon16" and "Icon32"). Is there any expectation on how many I should provide, or is it okay to just provide one if I'm okay with the UI auto-resizing it?
Thank you!
2 Replies
- v-jingzhangCommunity Support
Hi Ben-Dev
There is not much resource or documentation about icons. From the following thread, it seems the number of icons can be one. https://community.powerbi.com/t5/Developer/Custom-Data-Connector-Icons/m-p/829327
Best Regards,
Community Support Team _ Jing- Ben-DevHelper II
Thanks, v-jingzhang!
Any chance you could get someone from the custom connectors team to fill us in on the details here?