Where does “data-toggle” attribute of bootstrap framework come from?

后端 未结 4 1904
故里飘歌
故里飘歌 2021-02-01 03:15

I am trying to use some of the jQuery plugins for the Bootstrap framework and they use an attribute named \"data-toggle\". I am getting the warning \"attribute data toggle is n

4条回答
  •  离开以前
    2021-02-01 03:28

    If you look in the JavaScript Collapse plugin documentation of Bootstrap you will find a reasonably clear example of the workings of the collapse API and the relationship and uses of the pair data-toggle (which triggers the functionality) and data-target (which sets the behavior), plus other interesting tidbits.

提交回复
热议问题