本文介紹萬用群組件類WVUI的JSAPI,供您建立H5端應用或者小程式時參考。萬用群組件類WVUI的JSAPI提供顯示載入提示框、隱藏載入提示框、隱藏軟鍵盤等相關能力。
WVUI.showLoadingBox
顯示一個載入提示框。
iOS 效果 | Android 效果 |
|
|
輸入參數
無輸入參數。
回調參數
無回調參數,如果成功顯示載入提示框,則進入success 回調,否則進入failure 回調。
window.WindVane.call('WVUI', 'showLoadingBox', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});
WVUI.hideLoadingBox
隱藏載入提示框。
輸入參數
無輸入參數。
回調參數
無回調參數,如果成功隱藏警告框,則進入 success 回調,否則進入 failure 回調。
window.WindVane.call('WVUI', 'hideLoadingBox', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});
WVUI.hideKeyboard
說明
該API只在Windvane Android 1.0.3.4以上版本有效。
隱藏軟鍵盤。
輸入參數
無輸入參數。
回調參數
無回調參數,如果執行成功,則在隱藏軟鍵盤完畢後進入success 回調;否則進入failure 回調。
window.WindVane.call('WVUI', 'hideKeyboard', {}, function(e) {
}, function(e) {
alert('failure: ' + JSON.stringify(e));
});
