简体   繁体   English

如何判断Shield UI何时加载?

[英]How to tell when the Shield UI has loaded?

I am using the Shield UI Charting javascript component. 我正在使用Shield UI Charting javascript组件。 Is there a way to determine when the control has finished loading on the page? 有没有办法确定控件何时在页面上完成加载?

Yes. 是。 There is an event- events, that occurs after the chart has loaded completely. 在图表完全加载之后,会发生一个事件事件。 This is especially important when dealing with remote data, which can take some more time, compared to the loading time of the chart itself. 这在处理远程数据时尤其重要,与图表本身的加载时间相比,这可能需要更多时间。 Below is an example of using the load event: 以下是使用load事件的示例:

events: {
   load: function(event) {
       alert("Chart has finished Loading");
   }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM