-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tree): add left menu and an option to control availability of menus
Add setting's option - rightMenu which allows to control the availability of the right menu. By default it is true, which mean that right menu is available. When it is set to false there is no right menu. Add left menu and an option to control it. This menu is usefull when the tree should be displayed under mobile and tablet devices which don't have right click. By default left menu isn't available. Change event listeners for closing menus from click to mouse down, because opening of a left menu is an left mouse event (click event) and if you add event listener for closing menu on a click (when a menu is initialized), it fires right after opening, which cause immediate closing. Add a verification which on a mousedown event a close action will proceed only if the event target is out of the menu's items, because other wise the menu is destroyed before an action attached to the item is called. Add a call to a closing function at the end of the fired event on selecting a menu's item, because when a click event it trigger on a menu's item it doesn't call the close function.
- Loading branch information
Zhivka Dimova
committed
Mar 15, 2017
1 parent
4172c93
commit 1afb6fc
Showing
10 changed files
with
1,388 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.