Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

added touch and open on hover #164

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ factories/

# Built demo files
demo/dist

# map files
*.map
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ If you are using Angular's default emulated view encapsulation, you may have to
| Class name | Description |
| ---------- | ----------- |
| `ng-sidebar__backdrop` | Class of the backdrop `div`. Note that the `div` is only in the DOM when the backdrop is shown. |
| `ng-sidebar__backdrop--animate` | Class of the backdrop transition. |

### Page content

Expand Down Expand Up @@ -206,6 +207,11 @@ If you are using Angular's default emulated view encapsulation, you may have to
| closeOnClickOutside | boolean | `false` | Whether clicking outside of the open sidebar will close it. |
| keyClose | boolean | `false` | Close the sidebar when a keyboard button is pressed. |
| keyCode | number | `27` | The [key code](http://keycode.info/) for `keyClose`. |
| openOnHover | boolean | false | Open the sidebar on mouse enter (close the sidebar on mouse leave). Note that this only works if sidebar is docked. |
| delayBeforeOpen | number | 0 | Delay in miliseconds before opening of the sidebar. This applies if openOnHover is set to `true` (and docked sidebar). |
| delayBeforeClose | number | 0 | Delay in miliseconds before closing of the sidebar. This applies if openOnHover is set to `true` (and docked sidebar). |
| enableSliding | boolean | false | Enable closing (sliding) the sidebar with touch events. |
| thresholdToClose | number | 5 | Threshold in px to close the sidebar while sliding. This applies only if enableSliding is set to `true`. |

#### Outputs

Expand Down
Loading