Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Stickit binding functionality in form views #355

Open
kentmw opened this issue Oct 26, 2017 · 3 comments
Open

Expose Stickit binding functionality in form views #355

kentmw opened this issue Oct 26, 2017 · 3 comments

Comments

@kentmw
Copy link
Contributor

kentmw commented Oct 26, 2017

All that sweet functionality that backbone.stickit has, I want to control if I need it. Probably could use fields inside FormView as the place to do it. Some nice things include: selectOptions, visible and visibleFn, initialize and destroy for using plugins, updateMethod if $.html isn't the function you want it calling. events to custom bind stickit events other than change, keyup, cut, and paste, and attributes and classes that now disappear from options

@kentmw
Copy link
Contributor Author

kentmw commented Oct 26, 2017

I think it's as simple as not being so stingy with our "options" inside __generateModelFieldBinding. Just pass that options to stickit. Or extend our generated stickit options with the stickit field of the passed in options. See: https://github.com/vecnatechnologies/backbone-torso/blob/master/modules/FormView.js#L269

@kentmw
Copy link
Contributor Author

kentmw commented Oct 26, 2017

The __generateSelectOptions would also have to obey the options passed in by the fields configuration as well. https://github.com/vecnatechnologies/backbone-torso/blob/master/modules/FormView.js#L296

@mandragorn
Copy link
Contributor

@kentmw - just a note on linking to code, I've taken to making sure to link using a tag since a branch like master can change and the links can become out-of-date.

Also I might start working on this to fill out my CS requirement this year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants