IBM Worklight 6.0 - Does WL.BusyIndicator support text wrapping for iOS?

谁说我不能喝 提交于 2019-12-12 01:44:45

问题


Attached is the code for we have implemented for the busy indicator on iOS. But this does not wrap the busyText on iOS.

$.r.setBusyIndicator(new WL.BusyIndicator('content', {
    opacity : 0.65,
    fullScreen : false,
    text : busyText
}));

回答1:


Wrapping is not available.

You can use a different busy indicator altogether: a native busy implementation by you, or an indicator provided by a 3rd party library (jQuery Mobile, ...), etc.

Otherwise, you need to use the boxLength property which controls the height and width of the busy square holding the text, like this:

var busy = new WL.BusyIndicator(null, {
    text: "Ouverture de session",
    boxLength: 170 // Play with this value.
});
busy.show();

Related question: IBM Worklight 6.1 - How to customize WL.BusyIndicator's height and width?



来源:https://stackoverflow.com/questions/23712677/ibm-worklight-6-0-does-wl-busyindicator-support-text-wrapping-for-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!