Skip to content

Commit 4ddf1b9

Browse files
committed
fix(notification): update articles with 3.0.0 changes
1 parent af5b26c commit 4ddf1b9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/notification/overview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To add a Telerik Notification component to your page:
4646
NotificationReference.Show(new NotificationModel()
4747
{
4848
Text = "Auto Closable Notification",
49-
ThemeColor = ThemeColors.Primary
49+
ThemeColor = ThemeConstants.Notification.ThemeColor.Primary
5050
});
5151
}
5252
}
@@ -91,28 +91,28 @@ There are built-in themes for the most common notifications such as Success, Inf
9191
// Success
9292
NotificationReference.Show(new NotificationModel()
9393
{
94-
ThemeColor = ThemeColors.Success,
94+
ThemeColor = ThemeConstants.Notification.ThemeColor.Success,
9595
Text = "Success",
9696
});
9797
9898
// Info
9999
NotificationReference.Show(new NotificationModel()
100100
{
101-
ThemeColor = ThemeColors.Info,
101+
ThemeColor = ThemeConstants.Notification.ThemeColor.Info,
102102
Text = "Info",
103103
});
104104
105105
// Warning
106106
NotificationReference.Show(new NotificationModel()
107107
{
108-
ThemeColor = ThemeColors.Warning,
108+
ThemeColor = ThemeConstants.Notification.ThemeColor.Warning,
109109
Text = "Warning",
110110
});
111111
112112
// Error
113113
NotificationReference.Show(new NotificationModel()
114114
{
115-
ThemeColor = ThemeColors.Error,
115+
ThemeColor = ThemeConstants.Notification.ThemeColor.Error,
116116
Text = "Error",
117117
});
118118
}

upgrade/breaking-changes/3-0-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async Task OnGridStateInit(GridStateEventArgs<GridModel> args)
276276
- **DateInput** – removed `ParsingErrorMessage` (obsolete since version 2.8) in favor of `DateInput_ParsingErrorMessage` [localization string]({%slug globalization-localization%}).
277277

278278
- **Loader**, **LoaderContainer** - changed [`Size` parameter]({%slug loader-appearance%}#size) type from `LoaderSize` enum to `string` (example below). The default value of `Size` is `ThemeConstants.Loader.Size.Medium`. There is a new static class `Telerik.Blazor.ThemeConstants.Loader.Size` with a predefined set of size properties.
279-
- **Loader**, **LoaderContainer** - changed [`ThemeColor` parameter]({%slug loader-appearance%}#themecolor) type from `ThemeColors` enum to `string`. The default value of `ThemeColor` is `ThemeConstants.Loader.ThemeColor.Primary`. There is a new static class `Telerik.Blazor.ThemeConstants.Loader.ThemeColor` with a predefined set of properties.
279+
- **Notification**, **Loader**, **LoaderContainer** - changed [`ThemeColor` parameter]({%slug loader-appearance%}#themecolor) type from `ThemeColors` enum to `string`. The default value of `ThemeColor` is `ThemeConstants.Loader.ThemeColor.Primary`. There is a new static class `Telerik.Blazor.ThemeConstants.Loader.ThemeColor` with a predefined set of properties.
280280

281281
>caption Loader and LoaderContainer in UI for Blazor up to version 2.30 and after version 3.0
282282

0 commit comments

Comments
 (0)