Modals
Options: backdrop: true|false|'static'
keyboard: true|false
show: true|false
remote: false|path
Methods: .modal('toggle')
.modal('show')
.modal('hide')
Events: show.bs.modal
shown.bs.modal
hide.bs.modal
hidden.bs.modal
loaded.bs.modal
Dropdowns
Via data attributes: data-toggle="dropdown"
Via Javascript: $('.dropdown-toggle').dropdown()
(data-toggle="dropdown"
still required)
Methods: .dropdown('toggle')
Events: show.bs.dropdown
shown.bs.dropdown
hide.bs.dropdown
hidden.bs.dropdown
Tabs
Via data attributes: data-toggle="tab"
Content #1: .table-content .tab-pane.active
Content #2: .table-content .tab-pane
Via Javascript: $(this).tab('show')
Content #1: .table-content .tab-pane.fade.in.active
Content #2: .table-content .tab-pane.fade
Events: show.bs.tab
shown.bs.tab
Popovers
Usage: $('[data-toggle="popover"]').popover()
Popover
You must initialize them yourself
Options: animation: true|false
html: false|true
selector: false|string
title: ''|function
content: ''|function
container: false|string
placement: right|location|auto|function
trigger: click|hover|focus|manual
delay: 0|{show:500, hide:100}
Methods: .popover('show')
.popover('hide')
.popover('toggle')
.popover('destroy')
Events: show.bs.popover
shown.bs.popover
hide.bs.popover
hidden.bs.popover
Tooltips
Usage: $('[data-toggle="tooltip"]').tooltip()
Options: animation: true|false
html: false|true
selector: false|string
title: ''|function
container: false|string
placement: top|location|auto|function
trigger: hover focus|click|manual
delay: 0|{show:500, hide:100}
Methods: .tooltip('show')
.tooltip('hide')
.tooltip('toggle')
.tooltip('destroy')
Events: show.bs.tooltip
shown.bs.tooltip
hide.bs.tooltip
hidden.bs.tooltip
Alerts
Via data attributes (close button): data-dismiss="alert"
Via Javascript: $('.alert').alert()
Methods: .alert('close')
Events: close.bs.alert
closed.bs.alert
Buttons
Stateful button: data-loading-text="Loading..."
data-complete-text="Completed"
Methods: .button('toggle')
.button('loading')
.button('reset')
.button(string)
Collapse
Via data attributes: data-toggle="collapse"
#accordion.panel-group
Via Javascript: $(".collapse").collapse()
Options: parent: false|selector
toggle: true|false
Methods: .collapse('toggle')
.collapse('show')
.collapse('hide')
Events: show.bs.collapse
shown.bs.collapse
hide.bs.collapse
hidden.bs.collapse
Carousel
Via data attributes: data-target="#carousel"
data-slide
data-slide-to
data-ride
Via Javascript: $('.carousel').carousel()
.carousel.slide
Options: interval: 5000
pause: hover
wrap: true|false
Methods: .carousel('cycle')
.carousel('pause')
.carousel(number)
.carousel('prev')
.carousel('next')
Events: slide.bs.carousel
slid.bs.carousel