Cannot bind dialog closeOnEscape to property

UI Components for Angular
Post Reply
ps2gf
Posts: 3
Joined: 01 May 2016, 20:30

01 May 2016, 20:42

Hi,

I am trying to display a modal dialog where sometimes it can closeOnEscape and sometimes not. But, it does not seem to be properly binding:

export class DialogDemo {
canEsc: boolean = false;
}

<p-dialog [closeOnEscape]="canEsc">
// content
</p-dialog>

I have tried every combination of bindings I can think of and it does not bind properly.

Any suggestions?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 May 2016, 21:49

It is not possible right now, the value is evaluated only once.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests