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

匆匆过客 提交于 2019-12-12 01:05:23

问题


I am using busyindicator in worklight 6.1 version for ios environment and want to know how to increase height and width for indicator. Code for showing busy indicator which i am using

busyInd = new WL.BusyIndicator('content', {text : 'Loading Data Please Wait....'});
busyInd.show()  //for showing indicator 
busyInd.hide()  // for Hiding indicator  

It is showing me busyIndicator but it is very small and text is too long which is not showing properly. I want to customize the height and width. Can i do that or is there any way to do that or it it there can you provide me syntax for that.


回答1:


You need to use the boxLength property, as mentioned in the documentation for WL.BusyIndicator.

For example, in common\main.js:

var busy;

function wlCommonInit(){
    busy = new WL.BusyIndicator ("content", {text : 'Loading Data Please Wait....', boxLength: 255.5});
    busy.show();
}

P.S., There is a slight documentation issue here; I've opened a defect to correct it.



来源:https://stackoverflow.com/questions/20784146/ibm-worklight-6-1-how-to-customize-wl-busyindicators-height-and-width

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