且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

引导多&QUOT控制;数据切换"

更新时间:2022-10-23 18:08:56

如果您要添加的模式和工具提示无添加JavaScript或改变提示功能,你也可以简单地包裹一个元素它周围的:

 <跨度数据切换=莫代尔数据目标=#ID>
    <一个数据切换=提示数据放置=顶称号=我的文本工具提示!&GT + LT; / A>
< / SPAN>

Is there a way to assign more than one event to a bootstrap control via "data-toggle" For example, lets say I want a button that has a "tooltip" and a "button" toggle assigned to it.
Tried data-toggle="tooltip button", but only the tooltip worked.

EDIT:

This is easily "workaroundable" with

this.$("#newbtn").toggleClass("active").toggleClass("btn-warning").toggleClass("btn-success");

If you want to add a modal and a tooltip without adding javascript or altering the tooltip function, you could also simply wrap an element around it:

<span data-toggle="modal" data-target="#id">
    <a data-toggle="tooltip" data-placement="top" title="My Tooltip text!">+</a>
</span>