Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Is infinite scroll with remote data possible with ui-select? #550

Closed
BjoernKW opened this issue Dec 24, 2014 · 2 comments
Closed

Is infinite scroll with remote data possible with ui-select? #550

BjoernKW opened this issue Dec 24, 2014 · 2 comments

Comments

@BjoernKW
Copy link

Is infinite scroll with remote data possible as described on http://ivaynberg.github.io/select2/ with ui-select?

For instance:

$("#e7").select2({
placeholder: "Search for a repository",
minimumInputLength: 3,
ajax: {
url: "https://api.github.com/search/repositories",
dataType: 'json',
quietMillis: 250,
data: function (term, page) {
return {
q: term, //search term
page: page // page number
};
},
results: function (data, page) {
var more = (page * 30) < data.total_count;
return { results: data.items, more: more };
}
}
});

@PowerKiKi
Copy link

Dupe of #221

@amcdnl
Copy link
Contributor

amcdnl commented Apr 6, 2015

Probably related to #620 too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants