diff options
| author | louismaxime.piton <[email protected]> | 2022-05-19 15:35:44 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2022-06-01 19:24:45 -0700 |
| commit | c137d11aa2df111e2a42bc42295576fdd366fd68 (patch) | |
| tree | 9c93a9dbd479be01cb803c8bc294fee4028084f1 /js/src/tooltip.js | |
| parent | 824c5a077bfed3a3d3d80aef4cae1bc486d69f79 (diff) | |
| download | bootstrap-c137d11aa2df111e2a42bc42295576fdd366fd68.tar.xz bootstrap-c137d11aa2df111e2a42bc42295576fdd366fd68.zip | |
Re-ordering js default objects
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index a7368d085..92770091d 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -54,46 +54,46 @@ const AttachmentMap = { } const Default = { + allowList: DefaultAllowlist, animation: true, - template: '<div class="tooltip" role="tooltip">' + - '<div class="tooltip-arrow"></div>' + - '<div class="tooltip-inner"></div>' + - '</div>', - trigger: 'hover focus', - title: '', + boundary: 'clippingParents', + container: false, + customClass: '', delay: 0, + fallbackPlacements: ['top', 'right', 'bottom', 'left'], html: false, - selector: false, - placement: 'top', offset: [0, 0], - container: false, - fallbackPlacements: ['top', 'right', 'bottom', 'left'], - boundary: 'clippingParents', - customClass: '', + placement: 'top', + popperConfig: null, sanitize: true, sanitizeFn: null, - allowList: DefaultAllowlist, - popperConfig: null + selector: false, + template: '<div class="tooltip" role="tooltip">' + + '<div class="tooltip-arrow"></div>' + + '<div class="tooltip-inner"></div>' + + '</div>', + title: '', + trigger: 'hover focus' } const DefaultType = { + allowList: 'object', animation: 'boolean', - template: 'string', - title: '(string|element|function)', - trigger: 'string', + boundary: '(string|element)', + container: '(string|element|boolean)', + customClass: '(string|function)', delay: '(number|object)', + fallbackPlacements: 'array', html: 'boolean', - selector: '(string|boolean)', - placement: '(string|function)', offset: '(array|string|function)', - container: '(string|element|boolean)', - fallbackPlacements: 'array', - boundary: '(string|element)', - customClass: '(string|function)', + placement: '(string|function)', + popperConfig: '(null|object|function)', sanitize: 'boolean', sanitizeFn: '(null|function)', - allowList: 'object', - popperConfig: '(null|object|function)' + selector: '(string|boolean)', + template: 'string', + title: '(string|element|function)', + trigger: 'string' } /** |
