Outils pour utilisateurs

Outils du site


fr:code:system:notify

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fr:code:system:notify [2012/03/23 14:01] wismerhealfr:code:system:notify [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== Notify [En cours de Traduction Wismerheal][WSL] ====== ====== Notify [En cours de Traduction Wismerheal][WSL] ======
-This object allows sending system notifications. It only works on GNU/Linux.+Cet objet vous permet d'envoyer des notifications systèmeCela ne fonctionne que sur GNU/Linux.
  
-===== Functions =====+===== Fonctions =====
  
 ==== Notify ==== ==== Notify ====
-Constructor function.+Fonction de construction.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 var myObject = new Notify(); var myObject = new Notify();
Ligne 16: Ligne 16:
  
 === Arguments === === Arguments ===
-  - parameters - (object) the message parameters +  - parameters - (object) les paramètres de message 
-    * title - (string) the notification's title +    * title - (string) le titre de la notification 
-    * text - (string) the notification's text +    * text - (string) le texte de la notification 
-    * icon - (string) the notification's icon name or path to an image file (see [[http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html]]) +    * icon - (string) le nom de l’icône de la notification ou le chemin vers le fichier image (voir[[http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html]]) 
-    * timeout - (integer) the notification's timeout. It is ignored on some OSes like Ubuntu+    * timeout - (integer) le temps imparti à la notification. Ce temps est ignoré sur certains systèmes d'exploitation tel Ubuntu
  
 === Example === === Example ===
Ligne 33: Ligne 33:
 </code> </code>
  
-===== Methods =====+===== Méthodes =====
  
 ==== show ==== ==== show ====
-Shows the notification.+Fait apparaître la notification.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.show(); myObject.show();
Ligne 47: Ligne 47:
  
 === Arguments === === Arguments ===
-  - parameters - (object) the message parameters +  - parameters - (object) les paramètres de message 
-    * title - (string) the notification's title +    * title - (string) le titre de la notification 
-    * text - (string) the notification's text +    * text - (string) le texte de la notification 
-    * icon - (string) the notification's icon name or path to an image file (see [[http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html]]) +    * icon - (string) le nom de l’icône de la notification ou le chemin vers le fichier image (voir[[http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html]]) 
-    * timeout - (integer) the notification's timeout. It is ignored on some OSes like Ubuntu+    * timeout - (integer) le temps imparti à la notification. Ce temps est ignoré sur certains systèmes d'exploitation tel Ubuntu
  
-=== Returns === +=== Renvoie === 
-  * (Notify) this Notify+  * (Notify) ce Notify
  
 === Exceptions === === Exceptions ===
-  * (NotificationError) unable to show the notification+  * (NotificationError) na parvient pas à faire apparaître la notification
  
 === Example === === Example ===
Ligne 71: Ligne 71:
  
 === Notes === === Notes ===
-If you want to update a notification's text re-use a single Notify object and call [[#show|show]] to change the text.+Si vous voulez mettre à jour un texte de notification, réutilisez un simple objet Notify et appelez [[#show|show]] pour changer le texte.
fr/code/system/notify.1332511300.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)