Hi Emily,
I've tried to complete your example and make it working but I was unable to find any solution to this.
I see this kind of functionality is used in Form Builder only but not for Widget properties.
You could write to support at support@kentico.com and ask them to provide a few examples how to coplete this. I believe this can help.