powmedia / backbone-forms

Form framework for BackboneJS with nested forms, editable lists and validation
MIT License
2.17k stars 413 forks source link

Enable the use of editor objects in lists #451

Closed ezheidtmann closed 8 years ago

ezheidtmann commented 9 years ago

This PR just copies the editor-finding logic from fields.js to list.js, allowing me to use an editor that isn't in the Form.editors object.

ezheidtmann commented 9 years ago

Added another related enhancement: itemClass so users can override List.Item and use it on some list forms. Untested; I'll report on its use later today.

ezheidtmann commented 9 years ago

Sorry I didn't follow up earlier; these changes are working well for me in my project. I would love to hear your thoughts on the idea; happy to re-work if you think it would be better a different way.

ezheidtmann commented 9 years ago

Related to #453.

glenpike commented 8 years ago

Thanks for that. If you have an example of usage, that might be helpful as a JSFiddle, or similar for documentation.