Commit 07db51d3 authored by yann300's avatar yann300

add nodeRightclick event

parent 334a40a7
......@@ -92,6 +92,9 @@ class TreeView {
label.onclick = function () {
self.expand(keyPath)
}
label.oncontextmenu = function (event) {
self.event.trigger('nodeRightClick', [key, data, label, event])
}
li.appendChild(list)
} else {
caret.style.visibility = 'hidden'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment