How I can easily display an Alert, on-screen ? ___ Explaination I'm still new to toddle, and trying to figure out what I was doing in bubble works in toddle. I'm wondering how I can easily display an Alert, on-screen, after an action has been performed, to indicate the user that something is going on in the background. Cf image attached
needtheanswers
1 month ago
Oct 22, 2024, 9:03 AM
You could use a variable to do that. When you call/trigger the api you could set the variable to true that then displays the error/success message (for eg a div with some text)
π1
needtheanswers
1 month ago
Oct 22, 2024, 9:05 AM
the "div with the text" shows/is hidden based on if the variable is true but by default the variable is false in my case
Nice, i feel like the "toast package" method seems to be more straight forward. I'm checking the video. Thanks a lot
Matthieu B.
1 month ago
Oct 22, 2024, 10:24 AM
@Armand What other essential packages should I look into, when building an app ? Because the toast notification seems like a must-have for any toddle developer
Really depends on what you're building. For the current project I'm working on I am only using the Spark drag and drop, Vanilla Calendar and the UI Toast packages. I think that just like with Bubble Plugins, the less you use the better it is for the performance of your app
Matthieu B.
1 month ago
Oct 22, 2024, 12:33 PM
alright cool. I'll have a look at those. On the performance aspects, that's what I was thinking, but I guess, there is a trade off to make between a slow app, and the time to recreate everything from scratch for simple elements
Max
1 month ago
Oct 22, 2024, 12:48 PM
Just FYI: if the packages you import are made in toddle only (without external dependencies), they will not slow down your app compared to building them yourself
Matthieu B.
1 month ago
Oct 23, 2024, 3:51 PM
@Max I did not know that. Is the drag and drop package built in toddle only for instance ?