my.showLoading

Show the loading dialog.

Sample Code

copy
my.showLoading({
  content: 'loading...',
  delay: 1000,
});

Parameters

NameTypeMandatoryDescription
contentStringNoText contents of loading
delayNumberNoDisplaying delay, in ms, 0 by default If my.hideLoading was called before this time, it is not displayed.
successFunctionNoCallback function upon call success
failFunctionNoCallback function upon call failure
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure)