aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/notification/dir
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 14:47:54 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 14:47:54 +0100
commit30feb96f6084a2fb976a24ac01c1f4a054611b62 (patch)
treed73194ae27b60156ff0ca54013c8c4ad8519f10a /files/it/web/api/notification/dir
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-30feb96f6084a2fb976a24ac01c1f4a054611b62.tar.gz
translated-content-30feb96f6084a2fb976a24ac01c1f4a054611b62.tar.bz2
translated-content-30feb96f6084a2fb976a24ac01c1f4a054611b62.zip
unslug it: move
Diffstat (limited to 'files/it/web/api/notification/dir')
-rw-r--r--files/it/web/api/notification/dir/index.html72
1 files changed, 72 insertions, 0 deletions
diff --git a/files/it/web/api/notification/dir/index.html b/files/it/web/api/notification/dir/index.html
new file mode 100644
index 0000000000..c1e16410d6
--- /dev/null
+++ b/files/it/web/api/notification/dir/index.html
@@ -0,0 +1,72 @@
+---
+title: Notification.dir
+slug: Web/API/notifiche/dir
+translation_of: Web/API/Notification/dir
+---
+<p>{{APIRef("Web Notifications")}}</p>
+
+<p>La proprieta' in sola lettura <code>dir</code> dell'interfaccia {{domxref("Notification")}} indica la direzione del testo della notifica, puo' essere specificata nell'opzione <code>dir</code> del costruttore di {{domxref("Notification.Notification","Notification()")}} .</p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="Syntax" name="Syntax">Sintassi</h2>
+
+<pre class="eval">var <em>direzione</em> = Notification.dir;
+</pre>
+
+<h3 id="Return_Value" name="Return_Value">Valori</h3>
+
+<p>La {{domxref("DOMString")}} specifica la direzione el testo. I possibili valori sono:</p>
+
+<ul>
+ <li><code>auto</code>: adotta  il comportamento delle impostazioni del browser (valore di  default.)</li>
+ <li><code>ltr</code>: da sinistra a destra. ( es. |testo notifica                | )</li>
+ <li><code>rtl</code> : da destra a sinistra.( es. |                 testo notifica|) </li>
+</ul>
+
+<div class="note">
+<p><strong>Note</strong>: La maggior parte dei browser ignora le opzioni esplicite settate e funzionano con le proprie impostazioni.</p>
+</div>
+
+<h2 id="Esempi">Esempi</h2>
+
+<p>Il seguente frammento di codice crea un oggetto <code>opzioni</code>, da passare al costruttore <code>Notification()</code>.</p>
+
+<pre class="brush: js">var opzioni = {
+ body: 'Amo JavaScript!',
+ dir: 'rtl'
+}
+
+var n = new Notification('Mio titolo',opzioni);
+
+n.dir // dovrebbe ritornare 'rtl'
+</pre>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table>
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Web Notifications','#dom-notification-dir','dir')}}</td>
+ <td>{{Spec2('Web Notifications')}}</td>
+ <td>Living standard</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+
+
+<p>{{Compat("api.Notification.dir")}}</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API">Using the Notifications API</a></li>
+</ul>