I know this post is a bit dated but I needed to do the same thing tonight and wanted to share what I did for anyone else that stumbles across this page when searching for a solution. In my case I didn’t need to use bindings as I just wanted to initialise my widget with some values that won’t change over time so this worked out just fine.
- Create your reusable / child widget, in this example I have a widget with two child text widgets.
- Add variables to your reusable / child widget, I like to categorise these as Props. Here I’ve added two Text variables, one for name and the other for description. Make sure you mark these as instance editable (The yellow eye icon).
- Use the PreConstruct event in your reusable / child widget event graph to setup your widget based on the values provided by the given Props. This is fine for widgets that don’t need bindings (one off setup such as button labels, image assets etc…)
- Add your reusable / child widget to any other widget and override the exposed Props, your child widgets PreConstruct event will fire whenever you change the values of these props and you will see the updates within the designer/editor.
I hope this helps anyone else that lands on this post from google.