There is a nice little feature when you add form fields to the system configuration where you can use:
<my_field>
...
<validate>some-class</validate>
...
</my_field>
This will add a class to your <input>
form field which is useful for all sorts of things. Is there a method to do the same when declaring a widget parameter in widget.xml
?
Best Answer
I scoured through Magento source, and I did not find where an additional value would be set in
widget.xml
. While it's a bit annoying, I resorted to using my own<type>
.My
widget.xml
contains:The annoying part is that my block class only contains: