Handling Button Click events #2003
-
Hi! I am using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you elaborate on this one?
The loading spinner is meant to prevent double submission e.g. user clicks a button once, then your server needs to do some heavy calculations, but user gets impatient so clicks the button multiple times, leaving you with many more calculations / background jobs than needed. Loading prevents further interactions until Wave app responds - updates the UI. The loading spinner can be sidestepped by doing a "fake" UI update, e.g. in your button handler do something like Note that having a button that does nothing is not recommended as it may be confusing to your users. |
Beta Was this translation helpful? Give feedback.
I see, so you are trying to hack around with buttons to get the icons. Standalone icons are not yet supported (#1871) so your best bet is to use
ui.image
with your ownsvg
icon instead.