-
-
Notifications
You must be signed in to change notification settings - Fork 10
An event for reach bottom of listview #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've added the action
|
Hi. We are considering extending the FileManager Application, to support gradual fetching of data by scrolling down. The VFS adapter should support readdir with limitation. For example in readdir function of our server-side VFS adapter we should consider two limit (number of returned items) and marker (the last item previously returned) parameters. Since some Adapters may support this feature and some not, what is the best suggestion to add this feature in FileManager Application? |
The best solution for this is to create an interface in the VFS that can be used in options so that all adapters that supports this feature will use the same arguments when using the API. |
By interface in the VFS, you mean we should develop another VFS service-provider that expose readdirLimited method, in addition to other methods like readdir, readfile, ....? |
I mean into the VFS API: // usage
vfs.readdir('mount:/path', {
// new interface
page: {
size: Number,
token: String
}
})
// adapter
function readdir(path, options) {
fetch('http://localhost', {
body: JSON.stringify({
limit: options.page.size,
marker: options.page.token
})
})
} |
Is this client-side options accessibile in server-side VFS adapter? Whatever I add in options client-side in file-manager, server-side VFS adapter options only contains session object. |
All options are passed along to the server-side adapter. But it actually looks like the |
Also, this is off-topic now. Start a new issue please :) |
It's better to have an event when we reach to end of the list.
The text was updated successfully, but these errors were encountered: