This is a simple tutorial on how to create a toggle button in notion.
Steps:
1. Create a database
2. Create the necessary properties
- Status property
- Button property (toggle)
3. Edit the button to function as a toggle
a. create a variable to store the status options
b. create a variable to find & store the index of the current option of the status property
c. find the option to change to, when the button is clicked using a logic and above variables and store it in a variable.
d. Edit the status property using the value stored in the previous variable.
4. The toggle is ready to use.