-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Please add new toasts supports #260
Comments
If you could link me to the page of their demo, that would be great. |
I believe this isn't supported in the original plugins, so we won't implement it. |
https://getbootstrap.com/docs/4.2/components/toasts/ could you let me know how do you tell it original plugins or not? @thednp |
We will analyze it and have it working in the following days or week. Seems a simple straight forward component. Thanks for the heads up. |
I will reopen this and leave it this issue untouched until we have the original component closer to RC because I think it seems a bit unpolished. |
OK @nanixne please download latest master and give it a test. Some considerations: Initialization
Using Methods
Events
Please try and provide feedback. |
@nanixne I'm still waiting for your approval on the new component functionality and features. |
hi @thednp first of all thanks for your efforts on this library. I have it working, so that looks promising. I will keep you posted on my progress, I'm going to spend the coming hours on this item, so you may expect some feedback. I'm getting the following error message:
caused by: I'm probably forgetting to do something with transitionDuration, however the bootstrap docs are not mentioning this as a valid toast option. If I manually set |
@roymilder I cannot confirm the issue, perhaps you have a test site? I've done a one hour translation of the original plugin into native JavaScript, did some tests and everything seem to work fine. |
@thednp |
Nop I'm not familiar with that Angular stuff ;) |
Lol :)
this error relates to bootstrap-native-v4.js:218
if you manually set
in everything works well Ah, and to explain what the button does:
with
|
after digging in the code; perhaps it has something to do with the angular way of selecting the element. I'll try a few things tomorrow and will let you know. besides this one thing i have the toast component running within an angular component and it is working perfect so far. so, thanks.. |
Alright @roymilder sorry I can't help much with Angular stuff :| |
Any update on this guys? @roymilder & @nanixne |
@thednp haven't figured out the weird bug regarding the supportTransitions setting yet. |
Probably because there is no browser/mock-up browser in place? |
@thednp I tested on angular 7, it works! super duper!, I think for normal html page it should work too.
you are super! |
@roymilder I took look at your code; it missed initialization part. |
Thanks for the feedback @nanixne, however, the initialization is on line 34 of toast.component.ts. |
So @roymilder perhaps your CSS3 isn't right? I haven't checked but since our component uses |
my import handling was wrong: globalObject was correctly set and everything works fine. Haven't found any bugs related to the Toast. So, thanks! https://stackoverflow.com/questions/37430055/typescript-attach-module-namespaces-to-window |
That's great, I think we can close this as solved, we implemented the component and was tested in a "real world" environment, other issues will take new threads. Cheers. |
@roymilder hi, sorry i'm resurrecting this old issue but i'd like to know how you implemented bootstrap native in angular? i'm a complete newbie to angular 7 and cannot for the life of me figure it out. are you somehow importing the node module into app.component? |
Sure, not 100% sure that my way is the most correct way. But it works. in add:
in
So after including the library in your angular app, you should create a component that handles the element from your template file: toast.component.html
#toast exposes it to the component:
Hope this is helpful! |
I had this problem to open modal, but I fixed it following the instructions of @roymilder . I declared the bootstrap.native in angular.json and just putting the code below in the click action:
and It works! Thank you all involved in this issue. |
Recent bootstrap has new component toasts added and need us to initialize it. Could you add native support to it?
The text was updated successfully, but these errors were encountered: