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

ColorField Support #126

Closed
codematsing opened this issue Apr 1, 2024 · 4 comments
Closed

ColorField Support #126

codematsing opened this issue Apr 1, 2024 · 4 comments

Comments

@codematsing
Copy link

Hi, was wondering if I could use external form libraries together with this library?

https://pypi.org/project/django-colorfield/ doesn't seem to be supported.

Form is rendering properly however saving the form seems as if it does not clean the values inputted in field widget

@jrief
Copy link
Owner

jrief commented Apr 1, 2024

django-colorfield depends on jscolor, which a) depends on jQuery and b) hasn't been maintained for 7 years. I thus will not support it.

However, it might be that in the near future I will add a widget to edit colors. If you have any modern JS libraries in mind, please let lew know.

@codematsing
Copy link
Author

Oh I see will look into this and excited for this update as well. Thanks so much!

@codematsing
Copy link
Author

codematsing commented Mar 2, 2025

Closing this. Just use

widgets.Input({"type":"color"})

Just an issue with #61 still occurring - but unrelated to use of color input per se

@jrief
Copy link
Owner

jrief commented Mar 2, 2025

Yes, the built-in color field is quite useful but lacks of a few features other, more specialized libraries can offer. In that sense it's similar to an <input type="date" /> field which offers a date-picker but which is far from really good implementaions.

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

No branches or pull requests

2 participants