長時間実行されるプロセスを開始する直前に、このコードを使用して新しい WL.BusyIndicator を作成します...
if (gblShowBusyIndicator) {
busyIndicator = new WL.BusyIndicator('loader',
{text: 'Refreshing local sales data...',
opacity: 0.85,
fullScreen: true});
busyIndicator.show();
}
そのプロセス中に「テキスト」パラメーターを断続的に更新することは可能ですか? この関数を呼び出してみましたが、うまくいきませんでした。何か案は?
function setBusyIndicatorStatus(status) {
try {
if (busyIndicator.isVisible()) {
busyIndicator({text: status});
}
} catch (e) {
if (gblLoggerOn) WL.Logger.debug(">> setBusyIndicatorStatus(" + status + ") failure... discarding");
}
}