Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use attribute appendTo in primeNG in component ContextMenu?

Tags:

html

primeng

I´m trying to use the attribute appendTo in the component ContextMenu, but I want attach the behavior to one element, like a div.

like image 422
Jhonatan Delgado Avatar asked Dec 16 '16 17:12

Jhonatan Delgado


1 Answers

on the element u want to append to add a hashtag #myHashTag and on the prime element u want to append add: [appendTo]="myHashTag" <- without the # sign

example:

<div class="recording-control-button" #stopbutton></div>

<p-confirmDialog [appendTo]="stopbutton"></p-confirmDialog>
like image 72
asafrob Avatar answered Nov 19 '22 03:11

asafrob