insin / insin/newforms

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

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
634
Forks
46
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.