Alerts in toddle 🔔

  • matt_apollodev-1298209068485316661

    Matthieu B.

    6 months ago

    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
    1298209069018120233-image.png
  • needtheanswers-1298210038149546026

    needtheanswers

    6 months ago

    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-1298210600844918796

    needtheanswers

    6 months ago

    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
  • something like this
    1298210800317759539-image.png
  • plusmin-1298211057403433043

    Armand

    6 months ago

    you can also use the Toast package: https://ui_toast.toddle.site
    🔥1
  • matt_apollodev-1298226532019339264

    Matthieu B.

    6 months ago

    Nice, i feel like the "toast package" method seems to be more straight forward. I'm checking the video.

    Thanks a lot
  • matt_apollodev-1298230507972071456

    Matthieu B.

    6 months ago

    @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
  • plusmin-1298234164256051263

    Armand

    6 months ago

    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
  • matt_apollodev-1298262954424139787

    Matthieu B.

    6 months ago

    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.kayr-1298266678777348189

    Max

    6 months ago

    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
  • matt_apollodev-1298675049661992972

    Matthieu B.

    6 months ago

    @Max I did not know that. Is the drag and drop package built in toddle only for instance ?
  • max.kayr-1298677024180932724

    Max

    6 months ago

    No, this one has sortableJS under the hood
    👍1