Fixed #35599 -- Added ColorInput widget.

This commit is contained in:
arjunomray 2024-07-26 07:39:19 +02:00 committed by Sarah Boyce
parent 54e8b4e582
commit 946c3cf734
7 changed files with 39 additions and 0 deletions

View file

@ -558,6 +558,17 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
* ``template_name``: ``'django/forms/widgets/url.html'``
* Renders as: ``<input type="url" ...>``
``ColorInput``
~~~~~~~~~~~~~~
.. versionadded:: 5.2
.. class:: ColorInput
* ``input_type``: ``'color'``
* ``template_name``:``'django/forms/widgets/color.html'``
* Renders as: ``<input type='color' ...>``
``SearchInput``
~~~~~~~~~~~~~~~