Posted By

readman on 08/22/12


Tagged


Versions (?)

ModalDialog


 / Published in: Scala
 

  1. Display ModalDialog when link is clicked (template file: /templates-hidden/myDialogTemplate.html)
  2.  
  3. SHtml.a(() => try {
  4. Templates(List("templates-hidden", "myDialogTemplate")).map(html => ModalDialog(html)).openOr(Alert("missing template"))
  5. } catch {
  6. case error: Exception => Alert("exception: "+error.getMessage)
  7. }, Text("show dialog"))

Report this snippet  

You need to login to post a comment.