In this Hello World example, we add a QWaitIcon
, sometimes also known as "Spinners",
which will be displayed during the entire AJAX call.
To add the QWaitIcon
, you can define a DefaultWaitIcon
in your form,
passing in a QWaitIcon
object. At this point forward, every QAjaxAction
will, by default, use the defined wait icon to be displayed during your AJAX call.
This display can be overridden by either passing in null
for the wait icon to your
ajax action call, or alternatively you can pass in another QWaitIcon
defined in your form.
Be sure to remember to render your wait icon on your page! (Note: artificial sleep/wait time
has been added to the btnButton_Click
method in order to illustrate the spinner in