Hello
I am looking to use the new fancy Custom Template feature in Errai 3.2.
I would like to, in my custom template provider, get the class name of the widget that the template is applied to.
So, if I had a widget called MyWidget, then in my custom template I can get the name of the MyWidget class.
Is this possible?
Thanks
Hi Anton,
You can't quite do that. But you do get the template location (from the @Templated annotation). By default this would give you a location "my/package/MyWidget.html" for "my.package.MyWidget".
Hope that's helpful.