-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Trouble creating Popover initialised via Javascript or Data API #277
Comments
|
Thanks @thednp Should anyone else be having trouble in the future, I think that the element must have at least the
https://codepen.io/anon/pen/eoZamY shows it working. However the 'content' option does not override the data-content of the element. |
I'm gonna rework components init so that JS initialization has priority over |
The Popover component indeed didn't take any reading of |
good stuff and thanks for a good library! |
* moved build scripts to `/lib` folder * created an unified & updated build script for both V3/V4, check updated WIKI pages for user guide updates * fixed Popover not working with `options.title` and `options.content`, the script didn't read any of that #277 * fixed ScrollSpy to use `options.target` first before going after `data-target` (found after investigating #277) * NEW: added TOUCH events for Carousel, the component will now use `slideTo` method after a 75px long swipe left/right #275 * improved the Collapse component to work better with JavaScript init #276
* moved build scripts to `/lib` folder * created an unified & updated build script for both V3/V4, check updated WIKI pages for user guide updates * fixed Popover not working with `options.title` and `options.content`, the script didn't read any of that #277 * fixed ScrollSpy to use `options.target` first before going after `data-target` (found after investigating #277) * NEW: added TOUCH events for Carousel, the component will now use `slideTo` method after a 75px long swipe left/right #275 * improved the Collapse component to work better with JavaScript init #276
@timwaters |
I'm having trouble creating and showing a Popover created via Javascript
I'm able to initialise the Popover but not able to access the public methods.
<div id="popup"></div>
I also tried using the data API using the example from the docs, with no luck.
Here's a codepen showing my progress:
https://codepen.io/anon/pen/VNagOG
The text was updated successfully, but these errors were encountered: