Unobtrusive-jQuery-UI
Unobtrusive-jQuery-UI copied to clipboard
unobtrusive options only allow simple types
Because there is no evaluation of the options specified in the data-ui-{function}-{option} attributes, only simple types are rendered correctly.
For example, supposed there is an option disabled, and the type is Boolean. 'false' would evaluate correctly. But, if your option was of any type other than String, Boolean, or Number, the correct options will not be set.
I have a prototype of getting an inline anonymous function to evaluate, but going down this path opens up the door for adding support for Array, Date, Selector, jQuery, Element, and anything else that might evaluate to a typeof Object.