admin管理员组文章数量:1334190
I have a non-bootstrap project which requires popover functionality.
I'd like to use bootstrap's popovers, but don't want to include all of bootstrap, since I'll only be using this one feature. I'd also be open to suggestions for a different standalone popover widget.
Bootstrap's popover are described here, with examples:
My questions are:
- Which bootstrap CSS definitions will I need to extract from the source?
- Since the bootstrap customizer is not yet available, do I just need to use the file tooltip.js, or are there some other base js files I'll need to include?
Thanks!
I have a non-bootstrap project which requires popover functionality.
I'd like to use bootstrap's popovers, but don't want to include all of bootstrap, since I'll only be using this one feature. I'd also be open to suggestions for a different standalone popover widget.
Bootstrap's popover are described here, with examples:
http://getbootstrap./javascript/#popovers
My questions are:
- Which bootstrap CSS definitions will I need to extract from the source?
- Since the bootstrap customizer is not yet available, do I just need to use the file tooltip.js, or are there some other base js files I'll need to include?
Thanks!
Share Improve this question asked Aug 7, 2013 at 2:44 JonahJonah 16.2k23 gold badges93 silver badges169 bronze badges1 Answer
Reset to default 10Here's a fiddle with the relevant snippets of Bootstrap. The relevant classes are:
.popover .popover.top .popover.right .popover.bottom .popover.left .popover-title .popover-content .popover .arrow .popover .arrow:after .popover .arrow .popover .arrow:after .popover.top .arrow .popover.top .arrow:after .popover.right .arrow .popover.right .arrow:after .popover.bottom .arrow .popover.bottom .arrow:after .popover.left .arrow .popover.left .arrow:after
Yes, since popover extends tooltip. And you'll need jQuery if you're not already using it.
I've also heard some nice things about qTip2.
本文标签: javascriptHow To Extract Bootstrap39s Popover FunctionalityStack Overflow
版权声明:本文标题:javascript - How To Extract Bootstrap's Popover Functionality? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742314450a2451531.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论