Just watched the (really great) Backendless tutorial on ‘Data Paging’ (Data Paging | Backendless Database Training Course (pt. 23) - YouTube). We want to implement “infinite scroll”, so instead of clicking a “load more” button, we want users to scroll which triggers loading more data from a table… two questions:
I’m guessing we would need to create a custom function (JS) which detects scroll position. OK — but is it possible to have such a custom function run “automatically”, so it’s not in a particular event handler of UI Builder? Where to put it? and
can a custom function (JS) invoke a Codeless function (such as the “loadDataWithPaging” marketplace function) if the two functions are in the same logic area? Can a custom function (JS) invoke a custom function (Codeless, in the list of custom functions for our app)?
Nobody can answer my two questions above? Maybe I didn’t explain/articulate things well enough… restated:
Can I build custom JS code that includes an event listener (for example, listening for “scroll” events) which then triggers some other Codeless function(s) to run? Where would I place such a JS custom code function? Basically I want to create a scroll event handler. Any help = greatly appreciated
when you click on the context menu CopyInvocationCode it copies the code to the clipboard and you can paste it wherever you need it
yes, “aaa222” is just a name
// the function id is: “0688c303853a49797e34501e1b1eb4ce” this is just a reference to the function, it does not affect to the code execution
await BackendlessUI.Functions.call('aaa222') // the function id is: "0688c303853a49797e34501e1b1eb4ce"