1
0
Fork 0
forked from 0x2620/oxjs

lists: implement select-as-you-type

This commit is contained in:
rolux 2012-06-29 14:19:34 +02:00
commit 64a182ae1d
4 changed files with 85 additions and 61 deletions

View file

@ -19,6 +19,7 @@ Ox.IconList <f> IconList Object
orientation <s|both> orientation ("horizontal", "vertical" or "both")
pageLength <n|100> Number of items per page (if orientation != "both")
query <o> Query
selectAsYouType <s|''> If set to a key, enables select-as-you-type
selected <a|[]> array of selected items
size <n|128> list size
sort <a|[]> sort keys
@ -46,6 +47,7 @@ Ox.IconList = function(options, self) {
orientation: 'both',
pageLength: 100,
query: {conditions: [], operator: '&'},
selectAsYouType: '',
selected: [],
size: 128,
sort: [],
@ -95,6 +97,7 @@ Ox.IconList = function(options, self) {
orientation: self.options.orientation,
pageLength: self.options.pageLength,
query: self.options.query,
selectAsYouType: self.options.selectAsYouType,
selected: self.options.selected,
sort: self.options.sort,
type: 'icon',