/docs/config/loadingMessageTextVisible.html

https://github.com/forresst/jquery-mobile-fr_FR · HTML · 77 lines · 64 code · 13 blank · 0 comment · 0 complexity · 7dde22aa4281f0efd1bd1762c314980d MD5 · raw file

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Docs jQuery Mobile - Configuration</title>
  8. <link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
  9. <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
  10. <script src="../../js/jquery.js"></script>
  11. <script src="../../docs/_assets/js/jqm-docs.js"></script>
  12. <script>
  13. $(document).on("mobileinit", function(){
  14. $.mobile.loadingMessageTextVisible = true;
  15. });
  16. </script>
  17. <script src="../../js/"></script>
  18. </head>
  19. <body>
  20. <div data-role="page">
  21. <script>
  22. $(document).on("click", ".show-page-loading-msg", function() {
  23. var $this = $( this ),
  24. theme = $this.jqmData("theme") || $.mobile.loadingMessageTheme,
  25. msgText = $this.jqmData("msgtext") || $.mobile.loadingMessage,
  26. textonly = !!$this.jqmData("textonly");
  27. $.mobile.showPageLoadingMsg(theme, msgText, textonly);
  28. })
  29. .on("click", ".hide-page-loading-msg", function() {
  30. $.mobile.hidePageLoadingMsg();
  31. });
  32. </script>
  33. <div data-role="header" data-theme="f">
  34. <h1>Configuration appliquée</h1>
  35. <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Accueil</a> <a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Recherche</a>
  36. </div><!-- /header -->
  37. <div data-role="content">
  38. <h2>Le texte de loadingMessage est maintenant visible</h2>
  39. <p>Pour tester, cliquez sur le bouton ci-dessous et de parcourez les docs. Notez que si un lien provoque un rafraîchissement, ce paramètre sera perdue et les paramètres par défaut seront vus.</p>
  40. <a href="../../index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Navigation dans les docs</a>
  41. <p>Pour afficher le message de chargement à la demande :</p>
  42. <pre><code>$.mobile.showPageLoadingMsg();</code></pre>
  43. <p>Cliquez sur les boutons ci-dessous pour afficher et masquer le message de chargement avec les options par défaut.</p>
  44. <div data-role="controlgroup">
  45. <button class="show-page-loading-msg" data-inline="false" data-icon="arrow-r" data-iconpos="right">Afficher</button> <button class="hide-page-loading-msg" data-inline="false" data-icon="delete" data-iconpos="right">Masquer</button>
  46. </div>
  47. <h2>Thématisation du message de chargement</h2>
  48. <p>Pour afficher le message de chargement avec différent thème et message :</p>
  49. <pre><code>$.mobile.showPageLoadingMsg(<strong>"a", "Chargement theme a..."</strong>);</code></pre>
  50. <p>Le thème et le message peuvent être changés à la volée en appelant à nouveau la méthode. Cliquez les boutons ci-dessous pour voir le message de chargement avec le thème indiqué.</p>
  51. <div data-role="controlgroup">
  52. <button class="show-page-loading-msg" data-theme="a" data-icon="arrow-r" data-iconpos="right" data-msgtext="Loading theme a...">Thème a</button> <button class="show-page-loading-msg" data-theme="b" data-icon="arrow-r" data-iconpos="right" data-msgtext="Loading theme b...">Thème b</button> <button class="show-page-loading-msg" data-theme="c" data-icon="arrow-r" data-iconpos="right" data-msgtext="Loading theme c...">Thème c</button> <button class="show-page-loading-msg" data-theme="d" data-icon="arrow-r" data-iconpos="right" data-msgtext="Loading theme d...">Thème d</button> <button class="show-page-loading-msg" data-theme="e" data-icon="arrow-r" data-iconpos="right" data-msgtext="Loading theme e...">Thème e</button> <button class="hide-page-loading-msg" data-icon="delete" data-iconpos="right">Masquer</button>
  53. </div>
  54. <h2>Messages seulement avec du texte</h2>
  55. <p>Pour afficher le message de chargement sans image :</p>
  56. <pre><code>$.mobile.showPageLoadingMsg("a", "Pas d'image", <strong>true</strong>);</code></pre>
  57. <p>Cliquez le bouton ci-dessous pour voir le message de chargement sans image.</p>
  58. <div data-role="controlgroup">
  59. <button class="show-page-loading-msg" data-textonly="true" data-msgtext="Look Ma, no spinner!" data-icon="arrow-r" data-iconpos="right">Afficher</button> <button class="hide-page-loading-msg" data-inline="false" data-icon="delete" data-iconpos="right">Masquer</button>
  60. </div>
  61. </div><!-- /ui-body wrapper -->
  62. </div><!-- /page -->
  63. </body>
  64. </html>