Skip to content

Commit 49e60ca

Browse files
authored
Fixed notification-toaster
1 parent 1337f28 commit 49e60ca

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Notification Toaster
22

3-
An alternate inapp notification system,
3+
An alternate in-app notification system.
44

55
![Notification toaster](./assets/notification-toaster-demo.gif)
66

@@ -20,9 +20,12 @@ David Zoonekyndt | [GitHub](https://github.com/DavidZoon) ([LinkedIn](https://ww
2020

2121
### ⚠️⚠️⚠️ Important:
2222

23-
Paste YAML snipet in components view !
23+
Paste YAML snipet in components view!
24+
25+
### Show a notification
26+
27+
To show a notification, use:
2428

25-
To show a notification, use :
2629
```
2730
NotificationToaster_1.Notify( //replace 'NotificationToaster_1' by the name of the component in your app screen
2831
"✅ Success", // Mandatory : Title of your notification in bold text
@@ -31,21 +34,24 @@ NotificationToaster_1.Notify( //replace 'NotificationT
3134
3000) // Optionnal : The notification lifetime will be calculated based on the number of characters to be read and the 'ReadingSpeed' in the 'Theme' parameter
3235
```
3336

34-
Componnent positionning : To position the component in the bottom right corner of your screen, use the following positioning formulas:
37+
### Component positioning:
38+
39+
To position the component in the bottom right corner of your screen, use the following positioning formulas:
3540

3641
x: `Parent.Width-Self.Width`
3742
y: `Parent.Height-Self.Height`
3843

39-
All settings and instruction are in the 'Theme' parameter :
44+
All settings and instruction are in the 'Theme' parameter:
45+
4046
<img width="800" alt="sample_tablet_landscape" src="./assets/notification-toaster-parameters.png" />
4147

4248
## Code
43-
**[YAML-file](./source/notification-toaster.yaml)**
4449

45-
**[Demo screen (import component first ! ) YAML-file](./source/notification-toaster-demo-screen-import-compenent-first.yaml)**
50+
- **[YAML-file](./source/notification-toaster.yaml)**
51+
- **[Demo screen (import component first ! ) YAML-file](./source/notification-toaster-demo-screen-import-compenent-first.yaml)**
4652

4753
## Disclaimer
4854

4955
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
5056

51-
<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-snippets/power-apps/Notification-toaster" aria-hidden="true" />
57+
<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-snippets/power-apps/notification-toaster" aria-hidden="true" />

power-apps/Notification-Toaster/assets/notification-toaster-demo.gif renamed to power-apps/notification-toaster/assets/notification-toaster-demo.gif

File renamed without changes.

power-apps/Notification-Toaster/assets/notification-toaster-parameters.png renamed to power-apps/notification-toaster/assets/notification-toaster-parameters.png

File renamed without changes.

power-apps/Notification-Toaster/assets/notification-toaster.png renamed to power-apps/notification-toaster/assets/notification-toaster.png

File renamed without changes.

power-apps/Notification-Toaster/assets/sample.json renamed to power-apps/notification-toaster/assets/sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"longDescription": [
1212
"Allows to display notification with a custom duration and some nice effets : progress bar, glassmorphism..."
1313
],
14-
"url": "https://github.com/DavidZoon/powerplatform-snippets/blob/main/power-apps/Notification-toaster/",
14+
"url": "https://github.com/DavidZoon/powerplatform-snippets/blob/main/power-apps/notification-toaster/",
1515
"products": [
1616
"Power Platform",
1717
"Power Apps",
@@ -34,7 +34,7 @@
3434
{
3535
"type": "image",
3636
"order": 100,
37-
"url": "https://github.com/pnp/powerplatform-snippets/blob/edee8150a614d2e62bd84b02dde5e41609eb7ea5/power-apps/Notification-Toaster/assets/notification-toaster.png",
37+
"url": "https://raw.githubusercontent.com/pnp/powerplatform-snippets/main/power-apps/notification-toaster/assets/notification-toaster.png",
3838
"alt": "Preview PNG"
3939
}
4040
],

power-apps/Notification-Toaster/source/notification-toaster-demo-screen-import-compenent-first.yaml renamed to power-apps/notification-toaster/source/notification-toaster-demo-screen-import-compenent-first.yaml

File renamed without changes.

power-apps/Notification-Toaster/source/notification-toaster.yaml renamed to power-apps/notification-toaster/source/notification-toaster.yaml

File renamed without changes.

0 commit comments

Comments
 (0)