-
Notifications
You must be signed in to change notification settings - Fork 664
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
Update bootstrapDialog for Bootstrap version 4.0. #281
base: master
Are you sure you want to change the base?
Conversation
As of the latest v4 Alpha release this no longer works. You get this error when compiling via Grunt:
This will be fixed in the |
Just to mention, also working on this, using @avan06 code https://github.com/EugenMayer/bootstrap-dialog and some additions like bower dependency fixes. I am the the middle of testing it against bootstrap-4dev and could join this to see how far we get this |
At least this EugenMayer#4 and that EugenMayer#1 would be needed to get some sort of working copy. |
created a jsfiddle with bootstrap 4 http://jsfiddle.net/o5k0eaws/217/ |
i updated the jsfiddle to outline one issue: In bootstrap3, the modal-backdrop handling works, so the first dialog is overlayed by the backdrop, in bootstrap it is not. The reason is, that the modal-backdrops do not get a z-index at all. Using bootstrap4 with the classic API though, does work : http://jsfiddle.net/o5k0eaws/222/ |
Thanks for this try for bootstrap 4, it's been long since last time folks talking about this. I'm haven't read through bootstrap yet, I will arrange my time on it and them see how to create bootstrap 4-dialog. |
Well the only issue i am for now encountering is the one outlined in http://jsfiddle.net/o5k0eaws/219/ .. with the special use of bootstrap-dialog .. the modal-backdrop handling fails. Could you point me in a direction looking for thaT? |
'choose_remote_name/revert-232-feature_mouseOverButton'
I also get this error: "bootstrap3-dialog": "^1.35.3", Browserify Failed!: Cannot find module 'bootstrap' from '/home/vagrant/dev/mbm/node_modules/bootstrap3-dialog/dist/js' |
Greetings from Florida :) Any news on bootstrapDialog for V. 4 ? |
As much news as from bootstrap 4 itself, none |
:( |
Sorry, none.. |
Note: bootstrap 4 beta is now out. In there documentation, they do not support stacked modals as they consider it a bad user experience. https://getbootstrap.com/docs/4.0/components/modal/ |
I got Avan06 's version working. I had to add "col" class to the three sections, header, body and footer.
|
+1 |
@bindrid in bs3 it's also suggested not to use stacked modals. |
in css file i made this modification for bootstrap 4 .bootstrap-dialog .bootstrap-dialog-footer-buttons .btn{ |
FYI, bootstrap-v4.0.0-beta.2 is out. @nakupanda Why is this sitting around for months? This library is essential IMO for modals so I don't have to actually code the HTML manually. |
@tmaly1980 don't hold yourself back, go forward and do the essential work? |
@EugenMayer It looks like it's been done already, by @avan06 . Merge request has been sitting around since August. Also looks like you did some work on this in your own cloned repo. How far did you get? |
+1 |
Thank you ! |
It would be nice, if the work of @avan06 could be included here. |
Indeed! I had to remove the plugin because Yii updated Bootstrap and the functionality loss is noticeable :( |
it would be good to get this merged now. holding things up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this fix. It solves compatibility and although some css issues appear, it makes the plugin usable again.
Do you try with the last version of Bootstrap (4.1) ? I have this error:
"element" var seem to be a jQuery object but it call native 'css' attribute EDIT: Ok I think it's normal, just add 4.1 version :) |
Hello, |
+1 ! |
Ho can I download a version that works with bootstrap 4.1? |
I took all the changes and applied them, if you just want quick js files can grab these https://github.com/GedMarc/Bootstrap-Dialog4/tree/master/jar-resources/META-INF/resources/bower_components/bootstrap4-dialog/dist/js |
We created Bootstrap modal Wrapper plugin for bootstrap 4.1 that does not depends on any external CSS other than standard bootstrap css file which supports dynamic and stack modal creations in this repository https://github.com/JavaTMP/bootstrap-modal-wrapper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more places that require updates 👍
BootstrapDialogModal.METHODS_TO_OVERRIDE['v4.1'] = $.extend({}, BootstrapDialogModal.METHODS_TO_OVERRIDE['v3.3']);
Add at line 148, maybe with the \d?
https://github.com/GedMarc/bootstrap4-dialog contains all the required changes + all BS4 updates for colour themes (LESS Change) + extra wide width (size:extrawide) This repo doesn't look to be maintained, the other repo's have partial updates |
I'm that one who is a bit out of date.. which one is best to be merged? or nothing to be merged? |
@GedMarc I tested your repo in my project, it works, but I had to install it like this:
and in my node_modules it still shows in the folder I'd expect it to show as Or @nakupanda do you plan any updates on this? Bootstrap 4 is stable since ages now... |
@nakupanda Up to you bud! You did the bulk of the work xD I can do a pull request for you, but the request to update the bower packages to reflect the compatibility makes sense, |
@firepol I put it up, the version matches the current bootstrap 4 that it is compatible for : npm install bootstrap4-dialog |
A modified version is downward compatible,