本文介绍了IBM Worklight 6.1 - 如何自定义WL.BusyIndi​​cator的高度和宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在worklight 6.1版本中使用busyindicator为 ios 环境,并想知道如何增加指标的高度和宽度。用于显示我正在使用的忙碌指标的代码

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

它显示我busyIndi​​cator,但它非常小,文字太长,没有正确显示。我想自定义高度和宽度。我可以这样做,或者有没有办法做到这一点,或者它可以为你提供语法。

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.

推荐答案

你需要使用 boxLength 属性,。

例如,在 common \main.js

var busy;

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

P.S。,
此处有轻微的文档问题;我已经打开了一个缺陷来纠正它。

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

这篇关于IBM Worklight 6.1 - 如何自定义WL.BusyIndi​​cator的高度和宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 17:35