Commit bd5ca46d authored by yann300's avatar yann300

add nodeRightclick event

parent ebd62705
...@@ -92,6 +92,9 @@ class TreeView { ...@@ -92,6 +92,9 @@ class TreeView {
label.onclick = function () { label.onclick = function () {
self.expand(keyPath) self.expand(keyPath)
} }
label.oncontextmenu = function (event) {
self.event.trigger('nodeRightClick', [key, data, label, event])
}
li.appendChild(list) li.appendChild(list)
} else { } else {
caret.style.visibility = 'hidden' 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