Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
A button that cycles through a list of titles and actions when clicked
ResourceFunction["ToggleButton"][{label1⧴ action1,label2⧴ action2,…}] represents a cyclically toggling button that executes actioni when the title labeli is pressed. |
Create a button that cycles though values:
In[1]:= | ![]() |
Out[1]= | ![]() |
Create a button that switches between two actions:
In[2]:= | ![]() |
Out[2]= | ![]() |
Use any of the standard Button options:
In[3]:= | ![]() |
Out[3]= | ![]() |
Style your ToggleButton like a normal Button:
In[4]:= | ![]() |
Out[4]= | ![]() |
Create a play/pause button:
In[5]:= | ![]() |
Out[7]= | ![]() |
Create a button that toggles cycles through some images:
In[8]:= | ![]() |
Out[8]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License