Unobtrusive-jQuery-UI icon indicating copy to clipboard operation
Unobtrusive-jQuery-UI copied to clipboard

unobtrusive options only allow simple types

Open iamandycohen opened this issue 13 years ago • 0 comments

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.

iamandycohen avatar Dec 03 '11 16:12 iamandycohen