diff options
| author | arjunomray <arjunomray@gmail.com> | 2024-07-26 07:39:19 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-02 09:51:49 +0200 |
| commit | 946c3cf7342cc40c2d8e3d865c96a4ec990f76f4 (patch) | |
| tree | f1fab0e3223cf1c4c286f784b3365f0b0bc7c70b /docs | |
| parent | 54e8b4e5825eadf94ad715459f3aa60df389c8d4 (diff) | |
Fixed #35599 -- Added ColorInput widget.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/widgets.txt | 11 | ||||
| -rw-r--r-- | docs/releases/5.2.txt | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 1a868c32fa..bd970f1517 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -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`` ~~~~~~~~~~~~~~~ diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt index b732e98c9f..cb57b9255c 100644 --- a/docs/releases/5.2.txt +++ b/docs/releases/5.2.txt @@ -166,6 +166,10 @@ File Uploads Forms ~~~~~ +* The new :class:`~django.forms.ColorInput` form widget is for entering a color + in ``rrggbb`` hexadecimal format and renders as ``<input type='color' ...>``. + Some browsers support a visual color picker interface for this input type. + * The new :class:`~django.forms.SearchInput` form widget is for entering search queries and renders as ``<input type="search" ...>``. |
