dropdown data toggle code example

Example 1: bootstrap 4 dropdown

Example 2: bootstrap dropdown

.dropdown
Add a simple dropdown menu with buttons.

.dropdown-toggle-split
Create split button dropdowns with proper spacing around the dropdown caret.
.dropup Did you know that you can style a menu coming up rather than down? Now you do!
.dropright Provide the menu to the right of the button.
.dropleft ...And you can also display the menu on the left.
.dropdown-item-text Add non-interactive dropdown items to your menu. .dropdown-item disabled You can also choose to disable any menu item(s). .dropdown-divider Add a simple divider between menu elements to draw extra attention.
.dropdown-menu-right Align the entire menu to the right

Tags:

Misc Example