Primeng panel component on toggle show async data

UI Components for Angular
Post Reply
vipulk574
Posts: 1
Joined: 20 Jul 2022, 02:21

20 Jul 2022, 02:51

Hi Team,

I have a requirement on primeng panel component toggle, once clicked on more button , data should be displayed dynamically using async.

```
<p-panel [toggleable]="toggle" [collapsed]="true">
<p-header> Entity Information </p-header>
<div class="row mb-4">
<div class="col-12">
<entity-information></entity-information>
</div>
</div>
</p-panel>
```

After clicking on panel, send an asynchronous request, get the data and send to entity information.
I've tried onClick event, but event triggers when clicked on completed header, instead, event should raise only when clicked on More button

I have also tried onBeforeToggle() but this function does not trigger. Could someone guide here.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests