Opened 2 years ago
Last modified 17 months ago
#6157 new enhancement
Add a readonly attribute in combo fields
| Reported by: | rodo | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Component: | External preset |
| Version: | Keywords: | ||
| Cc: |
Description (last modified by simon04)
As previously discussed in #409 and #6156 it'll be usefull to have a readonly attribute on combo fields.
These feature is clearly described in TaggingPresets and will be very interesting for external presets in some project like HOT.
Attachments (1)
Change History (7)
comment:1 Changed 2 years ago by jttt
comment:2 Changed 2 years ago by rodo
I've try these attribute, it works, but the value is not shown and I'm afraid it's not enough user-friendly for non techies people.
Changed 17 months ago by simon04
comment:3 follow-up: ↓ 4 Changed 17 months ago by simon04
- Description modified (diff)
- Summary changed from Add a readonly attribute in combo fields to [Patch] Add a readonly attribute in combo fields
Patch attached. I don't see a reason why to use a custom ListCellRenderer for combo boxes …
comment:4 in reply to: ↑ 3 Changed 17 months ago by bastiK
comment:5 Changed 17 months ago by simon04
There seems to be some problem when using a <combo> element with editable="false". This is somehow related to the dummy entry which is returned on index -1.
comment:6 Changed 17 months ago by simon04
- Summary changed from [Patch] Add a readonly attribute in combo fields to Add a readonly attribute in combo fields



Isn't editable property what you're looking for? I didn't actually try it but it's there and it should allow to only select value from list, not enter your own value in edit box.