my.showLoading
Show the loading dialog.
Sample Code
copy
my.showLoading({
content: 'loading...',
delay: 1000,
});
Parameters
Property | Type | Required | Description |
content | String | No | Text contents of loading. |
delay | Number | No | Displaying delay, in ms, 0 by default If my.hideLoading was called before this time, it is not displayed. |
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |