ModelChoiceField select widget in Elm

Hi folks,

One of the ways I use djelm is to enhance form fields, in particular the ModelChoiceField form field.

I do it so often that I decided to make it a djelm widget that let’s you seamlessly render a fully dynamic, feature rich, highly customizable and accessible element.

You can find the docs here.

Because widgets are just Elm programs that live in your Django project, you can jump in to the code and customize them as you want. Djelm manages everything else.

This is a visual example of how you can customize the select options to create some pretty powerful user experiences.

djelm-cs-mcf

Im really excited to build out other djelm widgets and give Django some Elm flavored super powers!

Thanks for reading!

3 Likes

This is a lovely of where folks can incrementally experiment with Elm. Thanks for posting.

(Not sure if you have a site and/or mastodon socials that you could add to your GitHub profile?)

1 Like

Many thanks!

It’s been a blast to build.

Have been meaning to join Mastodon, thanks for the reminder!

1 Like