From ede98ac0f5950b2281fefb6a209671cc1845f1d6 Mon Sep 17 00:00:00 2001 From: Anderson Vallejo <48649209+Vallejoanderson@users.noreply.github.com> Date: Sat, 5 Feb 2022 22:00:54 -0500 Subject: Content sync and updated to md | Notification.dir [ES] (#4004) * Sync Notificationdir * Remove add semicolon in order to match with english version Co-authored-by: Carolyn Wu <87150472+cw118@users.noreply.github.com> * Update files/es/web/api/notification/dir/index.md Co-authored-by: Carolyn Wu <87150472+cw118@users.noreply.github.com> * Update files/es/web/api/notification/dir/index.md Co-authored-by: Carolyn Wu <87150472+cw118@users.noreply.github.com> * Update files/es/web/api/notification/dir/index.md Co-authored-by: David Brito <39559632+davbrito@users.noreply.github.com> Co-authored-by: Sergio.valera Co-authored-by: Carolyn Wu <87150472+cw118@users.noreply.github.com> Co-authored-by: David Brito <39559632+davbrito@users.noreply.github.com> --- files/es/web/api/notification/dir/index.html | 59 --------------------------- files/es/web/api/notification/dir/index.md | 60 ++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 59 deletions(-) delete mode 100644 files/es/web/api/notification/dir/index.html create mode 100644 files/es/web/api/notification/dir/index.md (limited to 'files/es') diff --git a/files/es/web/api/notification/dir/index.html b/files/es/web/api/notification/dir/index.html deleted file mode 100644 index 35f58dfca7..0000000000 --- a/files/es/web/api/notification/dir/index.html +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: Notification.dir -slug: Web/API/notification/dir -translation_of: Web/API/Notification/dir ---- -

{{APIRef("Web Notifications")}}

- -

{{ SeeCompatTable() }}

- -

Resumen

- -

La propiedad dir indica la direccion para el lenguaje a usar dentro de la notificación.

- -

El valor por esta propiedad es envianda durante la instanciancion de {{domxref("Notification")}} mediante la definición de la propiedad dir el objeto de las opciones pasa al {{domxref ("Notificación")}} constructor.

- -

Sintaxis

- -
var direction = instanceOfNotification.dir;
-
- -

Tipo

- -

String representa la actual direccion. puede ser:  

- - - -

Especificaciones

- - - - - - - - - - - - - - - - -
EspecificacionEstadoComentarios
{{SpecName('Web Notifications')}}{{Spec2('Web Notifications')}}Initial specification.
- - - -

{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}

- -

Ver tambien

- - diff --git a/files/es/web/api/notification/dir/index.md b/files/es/web/api/notification/dir/index.md new file mode 100644 index 0000000000..1e0351d982 --- /dev/null +++ b/files/es/web/api/notification/dir/index.md @@ -0,0 +1,60 @@ +--- +title: Notification.dir +slug: Web/API/notification/dir +tags: + - API + - Notification + - Notifications + - Notifications API + - Property + - Reference + - dir +translation_of: Web/API/Notification/dir +browser-compat: api.Notification.dir +--- +{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}} + +La propiedad `dir` de solo lectura de la interfaz {{domxref("Notification")}} indica la direccion del texto en la notificación, como se especifica en la opción `dir` del constructor {{domxref("Notification.Notification","Notification()")}}. + +## Sintaxis + +```js +var direction = Notification.dir; +``` + +### Valor + +Un {{domxref("DOMString")}} especifica la dirección del texto, los posibles valores pueden ser: + +- `auto`: Aplica el comportamiento del idioma del navegador (por defecto). +- `ltr`: El texto es desplegado de izquierda a derecha. +- `rtl`: El texto es desplegado de derecha a izquierda. + +> **Nota:** La mayoría de los navegadores parecen ignorar las intrucciones explicitas `ltr` y `rtl`, y solo van a las proveídas por el navegador. + +## Ejemplos + +El siguiente código ejecuta una notificación; se crea un simple objeto `options`, luego la notificación se dispara usando el constructor `Notification()`. + +```js +var options = { + body: 'Do you like my body?', + dir: 'rtl' +} + +var n = new Notification('Notificación de prueba', options); + +console.log(n.dir); // Deberia retornar 'rtl' +``` + +## Especificaciones + +{{Specifications}} + +## Navegadores Compatibles + +{{Compat}} + +## Ver tambien + +- [Usando la API de Notificaciones](/es/docs/Web/API/Notifications_API/Using_the_Notifications_API) -- cgit v1.2.3-54-g00ecf