Active Query Builder support area

How to detect Active Query Builder is fully loaded and ready to use?

Last modified:


Q:  I am having a loader that I want it to be removed just after the tables and query are fully loaded. How can I do this?

A: You must bind to the core.Events.SyncFinished event and unbind from it after it gets fired: 

$(function () {
    var core = AQB.Web.Core;
    
    core.on(core.Events.SyncFinished, firstSyncHandler);
    
    function firstSyncHandler() {
        // do awesome actions
        core.removeListener(core.Events.SyncFinished, firstSyncHandler);
    }
});

Is this article helpful for you?