blob: 35f58dfca7529645437d897a20e847c1ebec3190 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
---
title: Notification.dir
slug: Web/API/notification/dir
translation_of: Web/API/Notification/dir
---
<p>{{APIRef("Web Notifications")}}</p>
<p>{{ SeeCompatTable() }}</p>
<h2 id="Summary" name="Summary">Resumen</h2>
<p><span style="line-height: 23.3333339691162px;">La propiedad dir indica la direccion para el lenguaje a usar </span><span style="line-height: 23.3333339691162px;">dentro de la notificación</span>.</p>
<p>El valor por esta propiedad es envianda durante la instanciancion de <span style="line-height: 23.3333339691162px;">{{domxref("Notification")}} </span>mediante la definición de la propiedad dir el objeto de las opciones pasa al {{domxref ("Notificación")}} constructor.</p>
<h2 id="Syntax" name="Syntax">Sintaxis</h2>
<pre class="eval">var <em>direction</em> = <em>instanceOfNotification</em>.dir;
</pre>
<h3 id="Return_Value" name="Return_Value">Tipo</h3>
<p>String <span style="line-height: 23.3333339691162px;">representa la actual direccion</span>. puede ser: </p>
<ul>
<li><code>auto</code>: La direccion es definida automaticamente.</li>
<li><code>ltr</code>: <span style="line-height: 23.3333339691162px;">El texto es desplegado de izquierda a derecha</span>.</li>
<li><code>rtl</code>: <span style="line-height: 23.3333339691162px;">El texto es desplegado de derecha a izquierda</span>.</li>
</ul>
<h2 id="Especificaciones">Especificaciones</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificacion</th>
<th scope="col">Estado</th>
<th scope="col">Comentarios</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('Web Notifications')}}</td>
<td>{{Spec2('Web Notifications')}}</td>
<td>Initial specification.</td>
</tr>
</tbody>
</table>
<h2 id="Navegadores_Compatibles">Navegadores Compatibles</h2>
<p>{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}</p>
<h2 id="Ver_tambien">Ver tambien</h2>
<ul>
<li>{{domxref("Notification")}}</li>
<li><a href="/en-US/docs/WebAPI/Using_Web_Notifications" title="/en-US/docs/WebAPI/Using_Web_Notifications">Using Web Notifications</a></li>
</ul>
|