diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index 9b4af972..a2a3556d 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -239,9 +239,9 @@ x : global.pageXOffset || doc[scrollLeft] } }, - styleTip = function(link,element,position,container) { // both popovers and tooltips - var rect = link[getBoundingClientRect](), - scroll = container === body ? getScroll() : { x: container[offsetLeft] + container[scrollLeft], y: container[offsetTop] + container[scrollTop] }, + styleTip = function(link,element,position,container) { // both popovers and tooltips + var rect = link[getBoundingClientRect](), + scroll = container === body ? getScroll() : { x: container[offsetLeft] + container[scrollLeft], y: container[offsetTop] + container[scrollTop] }, linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] }, elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] }; diff --git a/index.html b/index.html index c11980d9..3b2f5cbe 100644 --- a/index.html +++ b/index.html @@ -288,43 +288,45 @@

Modal

Options

Bootstrap 4 will remove the remote option and we already replaced it with a better option. We also skipped the show option because via JavaScript we quickly and easily access the component's public methods right after initialiation, we'll have a look in a minute.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
backdropboolean or the string 'static'trueIncludes a modal-backdrop element. Alternatively, specify 'static' for a backdrop which doesn't close the modal on click.
keyboardbooleantrueOption to dismiss the current modal via Esc key.
durationnumber300If you are customizing the animation duration for Modal, you need to provide a duration value via JavaScript or data-duration="DURATION" attribute, an option to - make sure everything is in sync.
contentmarkupThe Modal component comes with a template system instead of a load remote content function (Bootstrap 4 drops it). This option can be used with JavaScript only.
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
backdropboolean or the string 'static'trueIncludes a modal-backdrop element. Alternatively, specify 'static' for a backdrop which doesn't close the modal on click.
keyboardbooleantrueOption to dismiss the current modal via Esc key.
durationnumber300If you are customizing the animation duration for Modal, you need to provide a duration value via JavaScript or data-duration="DURATION" attribute, an option to + make sure everything is in sync.
contentmarkupThe Modal component comes with a template system instead of a load remote content function (Bootstrap 4 drops it). This option can be used with JavaScript only.
+

The default options' values are same as their jQuery plugin equivalents so you can expect same behavior.

@@ -358,14 +360,15 @@

.update()

Events

- - +
+
+ - - + + - -
Event Type Description
show.bs.modal This event fires immediately when the .show() instance method is called. If caused by a click and the clicked element is a modal triggering element, that element is available @@ -383,8 +386,9 @@

Events

hidden.bs.modal This event is fired when the modal has finished being hidden from the user (set by our duration option).
+ + +

The loaded.bs.modal original event is not needed, also because we replaced the remote option with another one. If modal is opened via JavaScript methods, or by clicking on another element that is not a modal triggering element, the relatedTarget is null.

@@ -758,24 +762,26 @@

Dropdown

The component also allows you to close the dropdown by pressing the Esc key and grants access to methods and original events.