forked from 0x2620/oxjs
lists: implement select-as-you-type
This commit is contained in:
parent
c211b55d3b
commit
64a182ae1d
4 changed files with 85 additions and 61 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue