forked from 0x2620/oxjs
allow for getting 'save list' values from filter
This commit is contained in:
parent
571e3a3512
commit
21b505b4c8
3 changed files with 15 additions and 2 deletions
|
|
@ -181,6 +181,7 @@ Ox.Filter = function(options, self) {
|
|||
}),
|
||||
Ox.Input({
|
||||
id: 'list',
|
||||
placeholder: 'Untitled',
|
||||
width: 128
|
||||
})
|
||||
],
|
||||
|
|
@ -823,6 +824,18 @@ Ox.Filter = function(options, self) {
|
|||
that.triggerEvent('change', {query: query});
|
||||
}
|
||||
|
||||
// fixme: is this the best way/name?
|
||||
that.getList = function() {
|
||||
if (self.$save) {
|
||||
var value = self.$save.value();
|
||||
return {
|
||||
save: value[0],
|
||||
name: value[1],
|
||||
query: self.options.query
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue