Cannot use tooltip's option placement with function ???
See original GitHub issueI use webpack 4 with two package: “popper.js”: “^1.14.3” “tooltip.js”: “^1.2.0”
I have config tooltip with option:
new Tooltip(document.getElementById('ttip'),{
html: true,
placement: 'left',
title () {
return this.dataset.ttipTitle
}
})
It work fine. But i try change placement with function
new Tooltip(document.getElementById('ttip'),{
html: true,
placement () {
return 'left'
},
title () {
return this.dataset.ttipTitle
}
})
It have error
Uncaught TypeError: placement.indexOf is not a function
I don’t know why. Please help me fix it !
Thank you !
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Cannot use tooltip's option placement with function ??? #654
I use webpack 4 with two package: "popper.js": "^1.14.3" "tooltip.js": "^1.2.0". I have config tooltip with option: new Tooltip(document.
Read more >Tooltips and Popovers not working in Bootstrap 5
I created 2 buttons at the bottom of the page using "tooltips" and "popovers" but they don't work, nothing is displayed. Here is...
Read more >Tooltips · Bootstrap v5.0
When auto is specified, it will dynamically reorient the tooltip. When a function is used to determine the placement, it is called with...
Read more >Bootstrap Tooltip Placement - WOWSlider.com
The tooltip plugin generates information and markup as needed, and by default places tooltips after their trigger element. Set off the tooltip by...
Read more >Overlays | React-Bootstrap
A set of components for positioning beautiful overlays, tooltips, popovers, ... Pro Tip: Using the function form of OverlayTrigger avoids a React.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FezVrasta So all the
PlacementFunction
in the source code are supposed to be deleted? I’ll take care of it.The documentation is wrong, I’m sorry. We need to update it.