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

[FEATURE-REQUEST] Any pointers on how to add select2 #203

Open
tispratik opened this issue Mar 21, 2021 · 2 comments
Open

[FEATURE-REQUEST] Any pointers on how to add select2 #203

tispratik opened this issue Mar 21, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@tispratik
Copy link

Describe the problem you're proposing to solve
Make the drop list more manageable where there are many list items.

Describe the solution you'd like
Add Javascript Select2 library instead of the regular drop list.

Describe alternatives you've considered
https://github.com/nico-amsterdam/phoenix_form_awesomplete

Additional context
Add any other context or screenshots about the feature request here.
https://select2.org/

@tispratik tispratik added the enhancement New feature or request label Mar 21, 2021
@fceruti
Copy link

fceruti commented Jul 20, 2021

From what I'm seeing, the necessary changes are deep inside Kaffy.ResourceForm.build_html_input\6.

Maybe instead of passing a type and then case matching and calling html output functions, we could pass a widget which implements some behavior and that module is responsible for "rendering" the html. If there is no widget present, type could be inferred by the schema and assigned a widget by default.

There are many other use cases where custom rendering is needed. I would gladly work on something like this, but is this project alive?

@aesmail
Copy link
Owner

aesmail commented Nov 3, 2021

@fceruti we will have widgets eventually. I realize this is an extremely late response, but if you're still interested in tackling this let me know.

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

No branches or pull requests

3 participants