mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Fixed README
This commit is contained in:
parent
5ecdca28fb
commit
7f0d82e960
@ -55,7 +55,7 @@ The following properties can be configured:
|
|||||||
<td><code>position</code></td>
|
<td><code>position</code></td>
|
||||||
<td>Position where the notifications should be displayed.<br>
|
<td>Position where the notifications should be displayed.<br>
|
||||||
<br><b>Possible values:</b> <code>left</code> <code>center</code> <code>right</code>
|
<br><b>Possible values:</b> <code>left</code> <code>center</code> <code>right</code>
|
||||||
<br><b>Default value:</b> <code>3500</code>
|
<br><b>Default value:</b> <code>center</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -127,23 +127,23 @@ self.sendNotification("SHOW_ALERT", {title: "Hello", message: "This is a test!",
|
|||||||
<tr>
|
<tr>
|
||||||
<td><code>imageUrl</code> (optional)</td>
|
<td><code>imageUrl</code> (optional)</td>
|
||||||
<td>Image to show in the alert<br>
|
<td>Image to show in the alert<br>
|
||||||
<br><b>Possible values:</b> <code>url</code>
|
<br><b>Possible values:</b> <code>url</code> <code>path</code>
|
||||||
<br><b>Default value:</b> <code>none</code>
|
<br><b>Default value:</b> <code>none</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>imageHeight</code> (optional even with imageUrl set)</td>
|
<td><code>imageHeight</code> (optional even with imageUrl set)</td>
|
||||||
<td>Height of the image<br>
|
<td>Height of the image<br>
|
||||||
<br><b>Possible values:</b> "<code>int</code><code>px</code>"
|
<br><b>Possible values:</b> <code>intpx</code>
|
||||||
<br><b>Default value:</b> <code>80px</code>
|
<br><b>Default value:</b> <code>80px</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>timer</code> (optional)</td>
|
<td><code>timer</code> (optional)</td>
|
||||||
<td>How long the alert should stay visible in seconds.<br>
|
<td>How long the alert should stay visible in seconds.
|
||||||
|
<br><b>Important:</b> If you do not use the <code>timer</code>, it is your duty to hide the alert by using <code>self.sendNotification("HIDE_ALERT");</code>!<br>
|
||||||
<br><b>Possible values:</b> <code>int</code> <code>float</code>
|
<br><b>Possible values:</b> <code>int</code> <code>float</code>
|
||||||
<br><b>Default value:</b> <code>none</code>
|
<br><b>Default value:</b> <code>none</code>
|
||||||
<br><b>Important:</b> If you do not use the `timer`, it is your duty to hide the alert by using <code>self.sendNotification("HIDE_ALERT");</code>!
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user