forked from 0x2620/oxjs
allow for setting the selected id of an Ox.List to an id that is currently not in view
This commit is contained in:
parent
93408b0b4d
commit
0e835cc116
4 changed files with 38 additions and 16 deletions
|
|
@ -71,7 +71,7 @@ Ox.load('Geo', function() {
|
|||
} else {
|
||||
data.items = places;
|
||||
if (options.query) {
|
||||
// only case is key: 'id', value: ..., operator: '='
|
||||
// only case is key: 'id', value: ..., operator: '^$'
|
||||
data.items = data.items.filter(function(place) {
|
||||
return place[options.query.key] == options.query.value;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue