Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35345

fnDrawCallback doesn't word immediately

$
0
0

hello, everyone. I have a loading spinner, when I use "preDrawCallback" to make it "TRUE", it works fine, but when I want to make it "FALSE" in "preDrawCallback" I have to focus on some input field or change browser tab to make it false;

this is my code :

"preDrawCallback": function (settings) {
        console.log("SSSSSS =====>>>>> preDrawCallback");
        vm.loading = true;
},
"fnDrawCallback": function (oSettings) {
     // this log will show in console 
     console.log("EEEEEE =====>>>>> fnDrawCallback");
     // but this line note work immediately
     vm.loading = false;
},

how to make vm.loading "TRUE" immediately without a focus on elements !!!


Viewing all articles
Browse latest Browse all 35345

Trending Articles