How to access my custom component properties using javascript

Hi there.

I've created a custom component and placed three of them on the canvas.

The custom component has a widget.

When I click the widget I want to know which of the custom components I'm in so I can take action accordingly.

I've attempted this by creating a component property named"componentId" which points to an input widget. I assign a unique number to the input widget of each component.

How do I access the value of the component property input widget?

1 person has
this question