I want to make a button invisible on the SECOND click. I've got an other action on the first click. How should I do this?
Thanks in advance!
I want to make a button invisible on the SECOND click. I've got an other action on the first click. How should I do this?
Thanks in advance!
Copyright © 2021 Jogjafile Inc.
You can either keep state (i.e. count the button clicks) and hide the button on the 2nd click:
or you could re-assign the action method in the first click:
I like the latter approach better.