So far, in all the documentation and tutorials for UI Components that I've come across (Like the documentation here: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html, or in this sample module: https://github.com/magento/magento2-samples/tree/master/sample-module-form-uicomponent), you can only create UI Components as a separate page/route in the backend.
I want to create a UI Component that functions as a parameter in a widget. Is there a way to do this? Specifically, I want to do something along these lines:
In widget.xml:
<widget class="MyWidgetClass">
<label>My Widget</label>
<parameters>
<parameter name="product" xsi:type="SOME_UI_COMPONENT">
</parameters>
</label>
</widget>
Is there a way to make something like this happen? If I do create a UI component as a parameter, how do I get the parameter values to save in the widget?