kaffy icon indicating copy to clipboard operation
kaffy copied to clipboard

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

Open tispratik opened this issue 3 years ago • 2 comments

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 avatar Mar 21 '21 15:03 tispratik

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?

fceruti avatar Jul 20 '21 09:07 fceruti

@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.

aesmail avatar Nov 03 '21 16:11 aesmail