You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dropdown/docs/readme.md
-5
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,8 @@
2
2
Dropdown is a simple directive which will toggle a dropdown menu on click or programmatically.
3
3
You can either use `is-open` to toggle or add inside a `<a dropdown-toggle>` element to toggle it when is clicked.
4
4
There is also the `on-toggle(open)` optional expression fired when dropdown changes state.
5
-
6
-
Add `dropdown-append-to-body` to the `dropdown` element to append to the inner `dropdown-menu` to the body.
7
-
This is useful when the dropdown button is inside a div with `overflow: hidden`, and the menu would otherwise be hidden.
8
-
9
5
By default the dropdown will automatically close if any of its elements is clicked, you can change this behavior by setting the `auto-close` option as follows:
10
6
11
7
*`always` - (Default) automatically closes the dropdown when any of its elements is clicked.
12
8
*`outsideClick` - closes the dropdown automatically only when the user clicks any element outside the dropdown.
13
9
*`disabled` - disables the auto close. You can then control the open/close status of the dropdown manually, by using `is-open`. Please notice that the dropdown will still close if the toggle is clicked, the `esc` key is pressed or another dropdown is open.
0 commit comments