insin/newforms

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

Opened this issue · 0 comments

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?