Improve color picker form widget #2125

Closed
opened 2025-12-29 17:22:29 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Nov 14, 2018).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.4.7

Proposed Functionality

Replace the stock <select> widget with something capable of displaying colors for ColorFields.

Use Case

Most browsers don't render background colors for <select> items, so the user sees only a list of colors referenced by name ("Dark red", "Red", "Pink", etc.). This makes it difficult to find the desired color, especially if you're not familiar with the more obscure colors like cyan and indigo.

Database Changes

None

External Dependencies

This might involve a third party UI package like Select2, which was also mentioned in #2516.

Originally created by @jeremystretch on GitHub (Nov 14, 2018). ### Environment * Python version: 3.5.2 * NetBox version: 2.4.7 ### Proposed Functionality Replace the stock `<select>` widget with something capable of displaying colors for ColorFields. ### Use Case Most browsers don't render background colors for `<select>` items, so the user sees only a list of colors referenced by name ("Dark red", "Red", "Pink", etc.). This makes it difficult to find the desired color, especially if you're not familiar with the more obscure colors like cyan and indigo. ### Database Changes None ### External Dependencies This might involve a third party UI package like [Select2](https://select2.org/), which was also mentioned in #2516.
adam added the status: acceptedtype: feature labels 2025-12-29 17:22:30 +01:00
adam closed this issue 2025-12-29 17:22:30 +01:00
Author
Owner

@lampwins commented on GitHub (Jan 5, 2019):

This has been implemented in the select2-ui branch

@lampwins commented on GitHub (Jan 5, 2019): This has been implemented in the `select2-ui` branch
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2125