Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top