Skip to content

Commit b2b969c

Browse files
chore(notification): link sample project for single instance
1 parent 9e4f490 commit b2b969c

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#one-instance-per-app-link
2+
3+
You can declare a single notification instance in the main layout of your app and pass it down to all components in the app so they can all show notifications if they need to. You can find an example implementation in the [One Notification Instance for All Components](https://github.com/telerik/blazor-ui/tree/master/notification/single-instance-per-app) sample project.
4+
5+
#end
6+

components/notification/open-close-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ You can use it in two ways:
2929
* [Use Only the Text and ThemeColor Properties](#use-only-the-text-and-themecolor-properties)
3030
* [Pass a NotificationModel to the Method](#pass-a-notificationmodel-to-the-method)
3131

32+
You can also [show all notifications for your app from a single instance](#show-from-anywhere) so they all [stack together]({%slug notification-stacked-notifications%}) and also stay between page navigations.
3233

3334
### Use Only the Text and ThemeColor Properties
3435

@@ -79,6 +80,10 @@ You can pass the entire [NotificationModel]({%slug notification-overview%}#notif
7980
}
8081
````
8182

83+
### Show From Anywhere
84+
85+
@[template](/_contentTemplates/notification/templates.md#one-instance-per-app-link)
86+
8287
## Close and Hide
8388

8489
There are two separate ways to close a notification:

components/notification/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,14 @@ You can find more information on opening, closing and hiding the Notification in
122122
}
123123
````
124124

125+
>tip @[template](/_contentTemplates/notification/templates.md#one-instance-per-app-link)
126+
125127
## See Also
126128

127129
* [Live Demo: Notification](https://demos.telerik.com/blazor-ui/notification/overview/)
128130
* [Appearance Settings]({%slug notification-appearance%})
129131
* [Open, Close and Hide]({%slug notification-open-close-hide%})
130132
* [Templates]({%slug notification-templates%})
131133
* [API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.Components.TelerikNotification)
134+
* [One Notification Instance for All Components Sample Project](https://github.com/telerik/blazor-ui/tree/master/notification/single-instance-per-app)
132135

components/notification/stacked-notifications.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ When you invoke multiple notifications from the same component reference they wi
4141
}
4242
````
4343

44+
>tip @[template](/_contentTemplates/notification/templates.md#one-instance-per-app-link)
45+
4446
## See Also
4547

4648
* [Live Demo: Notification Overview](https://demos.telerik.com/blazor-ui/notification/overview)
4749
* [Notification Overview]({%slug notification-overview%})
50+
* [One Notification Instance for All Components Sample Project](https://github.com/telerik/blazor-ui/tree/master/notification/single-instance-per-app)

0 commit comments

Comments
 (0)