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
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/dropdown/docs/readme.md
+5
Original file line number
Diff line number
Diff line change
@@ -2,3 +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
+
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:
6
+
7
+
*`always` - (Default) automatically closes the dropdown when any of its elements is clicked.
8
+
*`outsideClick` - closes the dropdown automatically only when the user clicks any element outside the dropdown.
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