The OverlayPanel component can be integrated with other PrimeNG components as well. For example, the following snapshot shows how to integrate the Overlay component with the DataTable component using ng-template. In this case, the button needs to be placed inside DataTable ng-template and Overlay triggered through the toggle event:
In the preceding snapshot, the Overlay panel is used to display the aggregation information such as marks and percentage in the popup format by clicking on the result button in each row.