Set an association in a custom widget

I'm creating a custom widget that should create an object over (one to many) association, like the 'new' button in  a data view can do. However, how do I set that association? I guess the 'addReference' function should help, but how do I let the user select the path in the modeler?
1 answers

Take a look here: XML Reference Guide

That shows you how you can set the XML so that a user can add the reference in the Modeler.

And what you can do is check other widgets on GitHub for some good code examples.

Try the RadioButtonList widget for example.