Page 1 of 1

Organization chart and Context menu

Posted: 03 Nov 2019, 15:28
by No123
So i'm new to ngprime and wanted to ask a few things i wasn't able to do-
In the organization chart, can i add events on the nodes? For example, right click event or double click. Or maybe add button on top of a node (like a plus button).

Also, in the context menu, i can't seem to bind it to the organization chart, i took the example from the primeng site and they did it with img but when i put an id on the org chart element and put it in the target input, i get the error: element[NATIVE_ADD_LISTENER] is not a function..

Thank you in advance, it will help me alot.

Re: Organization chart and Context menu

Posted: 04 Nov 2019, 10:56
by yigitfindikli
No123 wrote:
03 Nov 2019, 15:28
So i'm new to ngprime and wanted to ask a few things i wasn't able to do-
In the organization chart, can i add events on the nodes? For example, right click event or double click. Or maybe add button on top of a node (like a plus button).

Also, in the context menu, i can't seem to bind it to the organization chart, i took the example from the primeng site and they did it with img but when i put an id on the org chart element and put it in the target input, i get the error: element[NATIVE_ADD_LISTENER] is not a function..

Thank you in advance, it will help me alot.
Hi,

Can you provide stackblitz sample using with https://stackblitz.com/github/primeface ... e-template .