TimHeckel / meteor-bootboxjs

A meteor smart package for the bootstrap bootboxjs plugin
30 stars 19 forks source link

Render reactive template dialog #15

Closed misinco closed 10 years ago

misinco commented 10 years ago

I'd like the dialog to be a reactive template. I looked at this SO:

http://stackoverflow.com/questions/22418592/bootboxjs-how-to-render-a-meteor-template-as-dialog-body

But that does not appear to work anymore. I played with Blaze.render but could not figure out the proper parent. I also tried Blaze.toHTML which worked great but was not reactive. What's the proper way, if any, to do this? Or is there a better practice for creating modals with templates?

Thanks in advance!

mizzao commented 10 years ago

See https://github.com/HarvardEconCS/turkserver-meteor/blob/master/client/dialogs.coffee#L28

misinco commented 10 years ago

Perfect!