Skip to content

async callback source for lazy loading #344

@davazp

Description

@davazp

lazyLoad function can set data.result to any kind of source. However, only ajax source and promises can get data asynchronously. But it is restricted to ajax and jquery

It would be useful if there was support for a general async callback

function(callback){
   callback(source);
   return true;
}

Because callbacks now are synchronous, so it would break compatibility. A special value could be returned to specify it is asynchronous, or even wrapping the function maybe.

My use case is, I am using fancytree from Angular and I need to use $http to fetch my data instead of jquery. But I am sure it would be useful for other uses too.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions