PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/af.ui/$.ui.actionsheet.md

https://github.com/maoyao/appframework
Markdown | 49 lines | 34 code | 15 blank | 0 comment | 0 complexity | 2810737266172578a13d41f96308bc23 MD5 | raw file
  1. #$.ui.actionsheet()
  2. ```
  3. This is a shorthand call to the $.actionsheet plugin. We wire it to the afui div automatically
  4. ```
  5. ##Example
  6. ```
  7. $.ui.actionsheet("Settings Logout")
  8. $.ui.actionsheet("[{
  9. text: 'back',
  10. cssClasses: 'red',
  11. handler: function () { $.ui.goBack(); ; }
  12. }, {
  13. text: 'show alert 5',
  14. cssClasses: 'blue',
  15. handler: function () { alert("hi"); }
  16. }, {
  17. text: 'show alert 6',
  18. cssClasses: '',
  19. handler: function () { alert("goodbye"); }
  20. }]");
  21. ```
  22. ##Parameters
  23. ```
  24. links String|Array
  25. ```
  26. ##Returns
  27. ```
  28. undefined
  29. ```
  30. ##Detail
  31. $.ui.actionsheet is a shortcut to the action sheet plugin.
  32. ```
  33. $.ui.actionsheet("<a href='javascript:;' class='button'>Settings</a> <a href='javascript:;' class='button red'>Logout</a>")
  34. ```