Access properties for component added using solution model

Hi,

I have added a bootstrapcomponents-button to my form via the solution model using:

var btnDownload = myForm.newWebComponent('btnDownload', 'bootstrapcomponents-button', x, y, width, height);

I now want to set some of the properties (such as styleClass, imageStyleClass etc.) but code completion does not show these as being available. I have tried to add a JSDoc tag to show the type for the component:

/** @type {plugins.bootstrapcomponents-button} */
var btnDownload = myForm.newWebComponent('btnDownload', 'bootstrapcomponents-button', x, y, width, height);

This does not show any build markers for the type declaration but also does not bring up the properties in code completion.

Any ideas how I can get access to the properties (with code completion and without getting build markers).

Thanks
Steve

Web components other than our default ones are very generic as it could be anything. This means that Bootstrap components (but also other ones from the Web Packages Manager) can be manipulated by the generic “getWebComponent” function, but Servoy Developer has no knowlegde about its API and such. So in order to get properties, you have to use the generic function “getJSONProperty” of the component or “setJSONProperty” to set them.

So you will not get any build markers but also no code completion for these properties.

Check our reference guide https://wiki.servoy.com/display/DOCS/JS … Name,value), this is an example of what Vincent just explained.