PageRenderTime 57ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/af.ui/$.ui.popup.md

https://github.com/jaydenlin/appframework
Markdown | 58 lines | 41 code | 17 blank | 0 comment | 0 complexity | c2c0378adf0b69b8bb18d2d9bdae39b5 MD5 | raw file
  1. #$.ui.popup(opts)
  2. ```
  3. This is a wrapper to $.popup.js plugin. If you pass in a text string, it acts like an alert box and just gives a message
  4. ```
  5. ##Example
  6. ```
  7. $.ui.popup(opts);
  8. $.ui.popup( {
  9. title:"Alert! Alert!",
  10. message:"This is a test of the emergency alert system!! Don't PANIC!",
  11. cancelText:"Cancel me",
  12. cancelCallback: function(){console.log("cancelled");},
  13. doneText:"I'm done!",
  14. doneCallback: function(){console.log("Done for!");},
  15. cancelOnly:false
  16. });
  17. $.ui.popup('Hi there');
  18. ```
  19. ##Parameters
  20. ```
  21. options Object|String
  22. ```
  23. ##Returns
  24. ```
  25. undefined
  26. ```
  27. ##Detail
  28. $.ui.popup is a wrapper to the popup plugin.
  29. Below are two examples
  30. ```
  31. $.ui.popup('Hi there');
  32. $.ui.popup( {
  33. title:"Alert! Alert!",
  34. message:"This is a test of the emergency alert system!! Don't PANIC!",
  35. cancelText:"Cancel me",
  36. cancelCallback: function(){console.log("cancelled");},
  37. doneText:"I'm done!",
  38. doneCallback: function(){console.log("Done for!");},
  39. cancelOnly:false
  40. });
  41. ```