My first WebSDK

I made the simplest component - a horizontal line.
Might be useful to someone starting out.

HLineComponent

Can such a control be added to the right panel like system controls with their own icon?

1 Like

Hi Artur,

Yes, this is described in the WebSDK Docs.pdf. There are two constants you can add to your control:

  • NavigatorIcon: “This constant is used to override the icon of your control in the Navigator. Using the WebSDKIconConverter, place the Base64 icon data into the value of this constant”
  • LibraryIcon: “This constant is used to override the icon of your control in the Library. Using the WebSDKIconConverter, place the Base64 icon data into the value of this constant”

To help creating that Base64 constant, there is a tool inside this path:
Extras > WebSDK > Tools > WebSDKIconConverter

You just drop the image and it will give you the string.

However, there is a known bug with the LibraryIcon, please add your upvote. We’ll fix it as soon as possible.

1 Like

Thank you for the quick reply :slight_smile:
For me (Windows 10 64b) the icon (64x64 png) in the navigation panel is correct, but in the library panel it remains the default, it has not changed to mine.

1 Like

A fix for this issue will be included as part of 2023r2 :innocent:

3 Likes