Removed sweetalert added custom alerts

This commit is contained in:
Paul-Vincent Roll
2016-04-03 03:04:38 +02:00
parent f8c1644dee
commit 679521c8a0
6 changed files with 110 additions and 986 deletions

View File

@@ -32,11 +32,17 @@ The following properties can be configured:
<tbody>
<tr>
<td><code>effect</code></td>
<td>The animation effect to use.<br>
<td>The animation effect to use for notifications.<br>
<br><b>Possible values:</b> <code>scale</code> <code>slide</code> <code>genie</code> <code>jelly</code> <code>flip</code> <code>exploader</code> <code>bouncyflip</code>
<br><b>Default value:</b> <code>slide</code>
</td>
</tr>
<td><code>alert_effect</code></td>
<td>The animation effect to use for alerts.<br>
<br><b>Possible values:</b> <code>scale</code> <code>slide</code> <code>genie</code> <code>jelly</code> <code>flip</code> <code>exploader</code> <code>bouncyflip</code>
<br><b>Default value:</b> <code>jelly</code>
</td>
</tr>
<tr>
<td><code>display_time</code></td>
<td>Time a notification is displayed.<br>
@@ -118,13 +124,6 @@ self.sendNotification("SHOW_ALERT", {title: "Hello", message: "This is a test!",
<br><b>Possible values:</b> <code>text</code> or <code>html</code>
</td>
</tr>
<tr>
<td><code>type</code> (optional)</td>
<td>The type of the alert.<br>
<br><b>Possible values:</b> <code>error</code> <code>warning</code> <code>info</code> <code>success</code>
<br><b>Default value:</b> <code>none</code>
</td>
</tr>
<tr>
<td><code>imageUrl</code> (optional)</td>
<td>Image to show in the alert<br>
@@ -133,10 +132,10 @@ self.sendNotification("SHOW_ALERT", {title: "Hello", message: "This is a test!",
</td>
</tr>
<tr>
<td><code>imageSize</code> (optional even with imageUrl set)</td>
<td>Size of the image<br>
<br><b>Possible values:</b> "<code>width</code>x<code>height</code>"
<br><b>Default value:</b> <code>none</code>
<td><code>imageHeight</code> (optional even with imageUrl set)</td>
<td>Height of the image<br>
<br><b>Possible values:</b> "<code>int</code><code>px</code>"
<br><b>Default value:</b> <code>80px</code>
</td>
</tr>
<tr>