Actions
Feature #1728
closedSupport of disabled item within WComboBox
Start date:
03/01/2013
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I would like to have a setItemDisabled(int index, bool disable) method within WComboBox class. Thus an user cannot select such a disabled item from the WComboBox. The attached screenshot is from a Trac Custom Search page which shows this feature.
To implement this I would add a Wt::ItemFlag::ItemIsDisabled and add support for it within the WStringListModel (maybe a member std::vector disabled_?). Within the WComboBox class the updateDom() method should then set the PropertyDisabled if the item is disabled.
Regards,
Stefan
Files
Updated by Jan Hrubeš almost 12 years ago
Updated by Koen Deforche over 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 11 years ago
Fixed using the ItemIsSelectable flag (and adding setFlags() to WStringListModel)
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed
Actions