What is the enhancement in mind? How should it look and feel?
Currently the data input to AceConfig "select" controls is:
values (table|function) - [key]=value pair table to choose from, key is the value passed to "set", value is the string displayed
This provides no facility for sorting the options in an order that makes sense to the user + application, and in fact AceConfigDialog renders the table in a random order that can even change between window openings. In some applications, especially those using multiple radio button selects, this leads to very confusing option screens.
I would a feature that allows the client to specify a sorting order for the display, where supported.
One possible interface would be to add a new optional member like:
sort (function(k1,k2)) - An optional sorting comparison function that requests the options be displayed in a sorted order when supported. The function takes two keys from the values array and returns true when k1 should appear before k2 in a sorted display. For example, if the keys are integral values one could sort the display by increasing key with sort = function(k1,k2) return k1 < k2 end
|oscarucb||Jan 13, 2012 at 13:59 UTC||Create|
- 9 comments
- Last updated
- Aug 23, 2016
- Jan 13, 2012
- New - Issue has not had initial review yet.
- Enhancement - A change which is intended to better the project in some way
- Medium - Normal priority.