KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Loader on subreport #185

Open dimasmaliq opened this topic on on Jan 5, 2018 - 4 comments

dimasmaliq commented on Jan 5, 2018

can you help me to give an example about how to add loader javascript before data is fully-loaded on your subreport_demo examples?

KoolReport commented on Jan 6, 2018

Could you please explain further your need? I have not fully understood what you are trying to complete.

dimasmaliq commented on Jan 8, 2018

what i mean is how to add some javascript loading animation before the data (inside red box) is completely loaded

KoolReport commented on Jan 8, 2018

I see, the SubReport has "updating" and "updated" event which you can register to add custom image. On "updating", you may show loading image and on "updated" event, you can turn off it.

<script type="text/javascript">
    subReport.on("updating",function(){
        console.log("The subreport is preparing to update");
    });
    subReport.on("updated",function(){
        console.log("The subreport is updated");
    });
</script>
dimasmaliq commented on Jan 8, 2018

nice, thank you very much!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

None