diff options
author | David Brito <39559632+davbrito@users.noreply.github.com> | 2022-02-04 12:09:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 12:09:55 -0400 |
commit | 3f959b8f5f501e984f9d4d6b220e4ee4eba2b55e (patch) | |
tree | f79e34ddf8f4329476befcfbafd5e086078a8310 /files/es/web | |
parent | 7233a921850f0a6725fe5adeadc5b83e043078e3 (diff) | |
download | translated-content-3f959b8f5f501e984f9d4d6b220e4ee4eba2b55e.tar.gz translated-content-3f959b8f5f501e984f9d4d6b220e4ee4eba2b55e.tar.bz2 translated-content-3f959b8f5f501e984f9d4d6b220e4ee4eba2b55e.zip |
Update notification body [es] (#3989)
* Update notification body [es]
* Apply suggestions from code review
Co-authored-by: Juan Vásquez <juan@logicalbricks.com>
Co-authored-by: Juan Vásquez <juan@logicalbricks.com>
Diffstat (limited to 'files/es/web')
-rw-r--r-- | files/es/web/api/notification/body/index.html | 63 | ||||
-rw-r--r-- | files/es/web/api/notification/body/index.md | 53 |
2 files changed, 53 insertions, 63 deletions
diff --git a/files/es/web/api/notification/body/index.html b/files/es/web/api/notification/body/index.html deleted file mode 100644 index 46c3209386..0000000000 --- a/files/es/web/api/notification/body/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: Notification.body -slug: Web/API/notification/body -tags: - - API - - API Notificaciones - - Javascript Notificador - - Notificaciones -translation_of: Web/API/Notification/body ---- -<p>{{APIRef("Web Notifications")}}</p> - -<p>{{ SeeCompatTable() }}</p> - -<h2 id="Summary" name="Summary">Resumen </h2> - -<p>El <font face="Consolas, Monaco, Andale Mono, monospace">body es la </font> propiedad que representa el contenido de la notificacion.</p> - -<p>Los valores por esta propiedad son enviandos durante la <span style="line-height: 23.3333339691162px;">instanciación de </span>{{domxref("Notification")}} definiendo la propiedad body en el objeto de las opciones pasa al {{domxref("Notification")}} constructor.</p> - -<h2 id="Syntax" name="Syntax">Sintaxis</h2> - -<pre class="eval">var <em>body</em> = <em>instanceOfNotification</em>.body; -</pre> - -<h3 id="Return_Value" name="Return_Value">Tipo</h3> - -<p>String.</p> - -<h2 id="Especificaciones"><span style="font-family: 'Open Sans Light', sans-serif; font-weight: bold; line-height: 23.3333339691162px; background-color: rgba(212, 221, 228, 0.498039);">Especificaciones</span></h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col"><span style="font-family: 'Open Sans Light', sans-serif; font-weight: bold; line-height: 23.3333339691162px; background-color: rgba(212, 221, 228, 0.498039);">Especificacion</span></th> - <th scope="col">Estado</th> - <th scope="col">Comentario</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('Web Notifications')}}</td> - <td>{{Spec2('Web Notifications')}}</td> - <td>Initial specification.</td> - </tr> - <tr> - <td> </td> - <td> </td> - <td> </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_también">Ver también</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> diff --git a/files/es/web/api/notification/body/index.md b/files/es/web/api/notification/body/index.md new file mode 100644 index 0000000000..6b184c6500 --- /dev/null +++ b/files/es/web/api/notification/body/index.md @@ -0,0 +1,53 @@ +--- +title: Notification.body +slug: Web/API/notification/body +tags: + - API + - API Notificaciones + - Javascript Notificador + - Notificaciones +translation_of: Web/API/Notification/body +--- +{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}} + +La propiedad **`body`** de solo lectura de la interfaz +{{domxref("Notification")}} indica la cadena del cuerpo de la notificación, como +se especifica en la opción `body` del constructor +{{domxref("Notification.Notification","Notification()")}}. + +## Sintaxis + +```js +var body = Notification.body; +``` + +### Valor + +Un {{domxref("DOMString")}}. + +## Ejemplos + +```js +function spawnNotification(theBody, theIcon, theTitle) { + var options = { + body: theBody, + icon: theIcon, + }; + var n = new Notification(theTitle, options); + + console.log(n.body); +} +``` + +## Especificaciones + +{{Specifications}} + +## Compatibilidad del navegador + +{{Compat}} + +## See also + +- [Usando la API de notificaciones](/es/docs/Web/API/Notifications_API/Using_the_Notifications_API) + |