The WVUI class provides JavaScript APIs to display and hide loading boxes and hide the soft keyboard in HTML5 and mini apps.
WVUI.showLoadingBox
Displays a loading box.
|
iOS effect |
Android effect |
|
|
|
Input parameters
None.
Callback parameters
None. The success callback runs if the loading box is displayed; otherwise, the failure callback runs.
window.WindVane.call('WVUI', 'showLoadingBox', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});
WVUI.hideLoadingBox
Hides the loading box.
Input parameters
None.
Callback parameters
None. The success callback runs if the loading box is hidden; otherwise, the failure callback runs.
window.WindVane.call('WVUI', 'hideLoadingBox', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});
WVUI.hideKeyboard
Note
Available only in WindVane for Android 1.0.3.4 or later.
Hides the soft keyboard.
Input parameters
None.
Callback parameters
None. The success callback runs after the soft keyboard is hidden; otherwise, the failure callback runs.
window.WindVane.call('WVUI', 'hideKeyboard', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});

