IBM工作灯6.0 - 无法更改默认WL.BusyIndi​​cator文本 [英] IBM Worklight 6.0 - Unable to change the default WL.BusyIndicator text

查看:218
本文介绍了IBM工作灯6.0 - 无法更改默认WL.BusyIndi​​cator文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经测试WL.BusyIndi​​cator像下面code:

I've test WL.BusyIndicator like following code:

    busyIndicator = new WL.BusyIndicator('content', {
    text : 'saving'
});
busyIndicator.show();
setTimeout(function() {
    busyIndicator.hide();
}, 3000);

信息中心说,<一个href=\"http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/topic/com.ibm.worklight.help.doc/apiref/r_wl_busyindicator.html\"相对=nofollow> BusyIndi​​cator控件选项可以在Android的环境文本。

我可以看到在我的Andr​​oid模拟器(V4.0.4 / V4.1.2 / v4.2.2)所示的BusyIndi​​cator控件,但文字是默认的正在载入...

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.BusyIndi​​cator文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆