All Products
Search
Document Center

SuperApp:Widget

Last Updated:Oct 25, 2024

This topic describes the JavaScript APIs of WVUI. You can refer to this topic when you create HTML5 apps or MiniApps. You can use the JavaScript APIs of WVUI to display the loading message, hide the loading message, and hide the soft keyboard.

WVUI.showLoadingBox

Displays a loading message.

Effect on iOS devices

Effect on Android devices

WVUI_showLoadingBox_iOS@2x.png

WVUI_showLoadingBox_Android@2x.png

Input parameters

No input parameters exist.

Callback parameters

No callback parameters exist. If the loading message is displayed, the success callback is invoked. Otherwise, the failure callback is invoked.

window.WindVane.call('WVUI', 'showLoadingBox', {}, function(e) {
}, function(e) {
        alert('failure: ' + JSON.stringify(e));
});

WVUI.hideLoadingBox

Hides a loading message.

Input parameters

No input parameters exist.

Callback parameters

No callback parameters exist. If the loading message is hidden, the success callback is invoked. Otherwise, the failure callback is invoked.

window.WindVane.call('WVUI', 'hideLoadingBox', {}, function(e) {
}, function(e) {
        alert('failure: ' + JSON.stringify(e));
});

WVUI.hideKeyboard

Note

This API is available only in WindVane Android 1.0.3.4 or later, WindVane iOS 2.1.4 or later.

Hides the soft keyboard.

Input parameters

No input parameters exist.

Callback parameters

No callback parameters exist. If the soft keyboard is hidden, the success callback is invoked. Otherwise, the failure callback is invoked.

window.WindVane.call('WVUI', 'hideKeyboard', {}, function(e) {
}, function(e) {
        alert('failure: ' + JSON.stringify(e));
});