// JavaScript
Button1.onclick = function () {
Spinner1.show();
};
Button2.onclick = function () {
Spinner1.hide();
};
No edit summary |
|||
Line 32: | Line 32: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
// JavaScript | // JavaScript | ||
Button1.onclick = function () { | |||
Spinner1.show(); | |||
}; | |||
Button2.onclick = function () { | |||
Spinner1.hide(); | |||
}; | }; | ||
Line 41: | Line 45: | ||
<syntaxhighlight lang="vb.net"> | <syntaxhighlight lang="vb.net"> | ||
' Basic | ' Basic | ||
Function Button1_onclick() | |||
Spinner1.show() | |||
End Function | |||
Function Button2_onclick() | |||
Spinner1.hide() | |||
End Function | End Function | ||
</syntaxhighlight> | </syntaxhighlight> |
Indicate the loading state of a component or page.
Standard properties are supported, plus:
bgColor | Show a standard spinner or a growing icon. |
growing | Show a standard spinner or a growing icon. |
showText | Show the text which spins along? |
size | Default size, or a bit smaller |
text | The text of the spinner. 'showText' turns it off. |
Standard events are supported. For this control, the onclick event will be most useful.
// JavaScript
Button1.onclick = function () {
Spinner1.show();
};
Button2.onclick = function () {
Spinner1.hide();
};
' Basic
Function Button1_onclick()
Spinner1.show()
End Function
Function Button2_onclick()
Spinner1.hide()
End Function