问题描述
我已经测试WL.BusyIndicator像下面code:
I've test WL.BusyIndicator like following code:
busyIndicator = new WL.BusyIndicator('content', {
text : 'saving'
});
busyIndicator.show();
setTimeout(function() {
busyIndicator.hide();
}, 3000);
信息中心说, BusyIndicator控件选项可以在Android的环境文本。
我可以看到在我的Android模拟器(V4.0.4 / V4.1.2 / v4.2.2)所示的BusyIndicator控件,但文字是默认的正在载入...
I can see the BusyIndicator shown on my Android Emulator (v4.0.4/v4.1.2/v4.2.2) but the text is default 'Loading'...
请注意:同在iOS的发生以及
Note: the same happens in iOS as well.
我的工作灯Studio版本是:6.0.0.201307241843
My Worklight Studio version is: 6.0.0.201307241843
推荐答案
请尝试以下code:
function wlCommonInit(){
WL.ClientMessages.loading = "Hello world :)";
var busyInd = new WL.BusyIndicator('content');
busyInd.show();
setTimeout(function () {
busyInd.hide();
}, 3000);
}
请注意,我用 WL.ClientMessages.loading
来设置消息,而不是传递对象与文本
键构造。
Notice that I'm using WL.ClientMessages.loading
to set the message, instead of passing an object with the text
key to the constructor.
我不得不看的忙碌指示灯code弄清楚什么是错的,我就开一个缺陷。感谢您报告这一点。
I had to look at the Busy Indicator code to figure out what was wrong, I'll open a defect. Thanks for reporting this.
这篇关于IBM工作灯6.0 - 无法更改默认WL.BusyIndicator文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!