The data-toggle attributes in Twitter Bootstrap

后端 未结 10 1429
我寻月下人不归
我寻月下人不归 2020-11-30 16:58

What does data-toggle attributes do in Twitter Bootstrap? I couldn\'t find an answer in Bootstrap API.

I have seen a similar question before as well, li

10条回答
  •  情话喂你
    2020-11-30 17:04

    The presence of this data-attribute tells Bootstrap to switch between visual or a logical states of another element on user interaction.

    It is used to show modals, tab content, tooltips and popover menus as well as setting a pressed-state for a toggle-button. It is used in multiple ways without a clear documentation.

提交回复
热议问题