-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: live examples of alerts and toasts #31330
Comments
They already exist, you just linked to them :) |
they're already present and visible on the page when it loads. need live examples where you'd trigger something and THEN they show up. smartypants. |
@patrickhlauke Ya great idea that would be nice and beginner will easily understand the use of the bootstrap component . |
Not sure how to proceed with the Alert live example. The moment it's closed, the element is removed from the DOM. I think we need to recreate the element through JS so that we have a button which says |
I agree. I'm working on the course for Bootstrap Essential Traninig and found this code to be confusing for a user:
[].slice.call is cool, but not the clearest to understand. Plus, it doesn't show you how to implement a button click. This code initializes the toasts, but doesn't show you how to call a toast from a button. Here's something I did.
With a corresponding CodePen to illustrate: https://codepen.io/planetoftheweb/pen/vYgVBGb?editors=1010 I think you need some examples like that instead of just the initialization. |
Not sure how easy/difficult it would be, since they require initialisation, but...would be nice to have actual working examples for https://v5.getbootstrap.com/docs/5.0/components/alerts/ and https://v5.getbootstrap.com/docs/5.0/components/toasts/
The text was updated successfully, but these errors were encountered: