Skip to content

unobtrusive options only allow simple types #2

Description

@iamandycohen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions