riotgear

Open full view…

Modal onopen attribute

hiidden
Fri, 15 Jan 2016 14:50:08 GMT

How do you use onopen of modals? I gave it a function via the code --- <rg-modal modal={modal}></rg-modal> function myFunc() {...} this.modal...{ ... onopen: myFunc, ... } --- This did not work. I then tested a simple function: --- onopen: function() {console.log("open!");}, --- However, no dice. Everything else regarding the modal works. Please help!

Greg
Sun, 31 Jan 2016 19:19:57 GMT

Have you tried the observable approach?

Greg
Fri, 05 Feb 2016 11:45:22 GMT

Can you give the new modal in v3 a go? Hopefully it will work better for you