Modify

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)

6157.patch (1.4 KB) - added by simon04 17 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by jttt

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.

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: 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

Replying to simon04:

I don't see a reason why to use a custom ListCellRenderer for combo boxes …

It is for extended description e.g. for SAC_scale. This feature seems to be broken ([4340] ?).

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team. Next status will be 'new'.
Next status will be 'needinfo'.The owner will change to rodo
as duplicate The resolution will be set to duplicate. Next status will be 'closed'.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous. Next status will be 'assigned'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.