Skip to content

Commit

Permalink
fix(notification): update articles with 3.0.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jivanova committed Feb 1, 2022
1 parent af5b26c commit 4ddf1b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/notification/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To add a Telerik Notification component to your page:
NotificationReference.Show(new NotificationModel()
{
Text = "Auto Closable Notification",
ThemeColor = ThemeColors.Primary
ThemeColor = ThemeConstants.Notification.ThemeColor.Primary
});
}
}
Expand Down Expand Up @@ -91,28 +91,28 @@ There are built-in themes for the most common notifications such as Success, Inf
// Success
NotificationReference.Show(new NotificationModel()
{
ThemeColor = ThemeColors.Success,
ThemeColor = ThemeConstants.Notification.ThemeColor.Success,
Text = "Success",
});
// Info
NotificationReference.Show(new NotificationModel()
{
ThemeColor = ThemeColors.Info,
ThemeColor = ThemeConstants.Notification.ThemeColor.Info,
Text = "Info",
});
// Warning
NotificationReference.Show(new NotificationModel()
{
ThemeColor = ThemeColors.Warning,
ThemeColor = ThemeConstants.Notification.ThemeColor.Warning,
Text = "Warning",
});
// Error
NotificationReference.Show(new NotificationModel()
{
ThemeColor = ThemeColors.Error,
ThemeColor = ThemeConstants.Notification.ThemeColor.Error,
Text = "Error",
});
}
Expand Down
2 changes: 1 addition & 1 deletion upgrade/breaking-changes/3-0-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async Task OnGridStateInit(GridStateEventArgs<GridModel> args)
- **DateInput** – removed `ParsingErrorMessage` (obsolete since version 2.8) in favor of `DateInput_ParsingErrorMessage` [localization string]({%slug globalization-localization%}).

- **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.
- **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.
- **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.

>caption Loader and LoaderContainer in UI for Blazor up to version 2.30 and after version 3.0
Expand Down

0 comments on commit 4ddf1b9

Please sign in to comment.