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

Hooks for widgets/field to bind UI handlers? Wysiwyg, autocomplete, datepicker, etc #111

Open
blainegarrett opened this issue Sep 10, 2015 · 0 comments

Comments

@blainegarrett
Copy link

After writing my own form lib in pure react and wanting to use a more fleshed out solution I am trying newforms. So far I love them.

That said, I'm having a hard time figuring out where to add callbacks, etc to bind form widget plugins like wysiwyg, autocomplete, datepickers, etc.

In my hacky home brewed solution, I was able to do this inside componentDidMount and snag the input.getDOMNode(). That said, my widgets and fields were ReactClasses and not the Isomorph Objects(?). This is done at the widget/field level so as to be able to make reusable Widgets/Fields w/o having to add all the bindings on the top level form wrapper ready state. i.e. the Widgets bind themselves up and any needed attrs are passed in via widgetAttrs.

Is there a way in the latest version to gain access to the input dom element. If not, is something like this planned for the future?

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

No branches or pull requests

1 participant