-
Notifications
You must be signed in to change notification settings - Fork 507
Migrate from v2 to v3
Boniface Pereira edited this page Nov 8, 2016
·
2 revisions
V3 introduces a lot of new features, so its not possible to make it backwards compatible with v2.
in v2.
$.confirm({
confirm: ..,
cancel: ..,
})
in v3.
$.confirm({
buttons: {
..
}
})
- button name okay, is changed to ok,
- opacity is changed to bgOpacity and is set to null by default
- theme names, 'white' is changed to 'light' and 'black' is changed to 'dark' (white and black are set alias, will still work)
- all the button options are moved inside the button object.
- default animation speed is changed from 500 to 400
- keyboardEnabled option is removed
- keyframes jconfirm-rotate is changed to jconfirm-spin (used for loading animation)
- jconfirm-noscroll class is changed to jconfirm-no-scroll
- all elements inside jconfirm-box are not prefixed with 'jconfirm-'
- the content overflow was handled using 'clip' in v2, that is changed to 'overflow: hidden' in v3.
- animation prefix changed from 'anim-' to 'jconfirm-animation-'