Skip to content

Commit aa5d2ab

Browse files
Dimo DimovDimo Dimov
authored andcommitted
docs: Update Loader examples and breaking changes
1 parent dc64c56 commit aa5d2ab

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

_contentTemplates/loaders/themeColor.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,23 @@ These predefined options match the main [Telerik Theme]({%slug general-informati
1919
2020
![Loader Theme Colors](images/loader-built-in-theme-colors.png)
2121

22-
<!--
2322
````CSHTML
2423
@{
25-
var fields = typeof(Telerik.Blazor.ThemeColors)
24+
var fields = typeof(ThemeConstants.Loader.ThemeColor)
2625
.GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static |
2726
System.Reflection.BindingFlags.FlattenHierarchy)
2827
.Where(fi => fi.IsLiteral && !fi.IsInitOnly).ToList();
2928
foreach (var f in fields)
3029
{
3130
string color = f.GetValue(null).ToString();
32-
<div style="float: left; margin: 20px;">
31+
<div style="display: inline-block; margin: 20px;">
3332
@color
3433
<br /><br />
3534
<TelerikLoader ThemeColor="@color"></TelerikLoader>
3635
</div>
3736
}
3837
}
3938
````
40-
-->
4139

4240
The `ThemeColor` parameter renders as the `k-loader-<ThemeColor>` CSS class on the wrapping element and you can set it to a custom value to cascade through and set the color to a setting of your own without customizing the entire theme.
4341

@@ -47,7 +45,7 @@ The `ThemeColor` parameter renders as the `k-loader-<ThemeColor>` CSS class on t
4745

4846
````CSHTML
4947
<style>
50-
.k-loader-custom-color .k-loader-segment::after {
48+
.k-loader-custom-color .k-loader-segment {
5149
background-color: cyan;
5250
}
5351
</style>

components/loadercontainer/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The LoaderContainer provides the following features:
8787

8888
* `LoaderType` - `enum` - controls the shape of the loader indicator. Takes a member of the `Telerik.Blazor.Component.LoaderType` enum. See the [Appearance]({%slug loadercontainer-appearance%}) article for more information and examples.
8989

90-
* `Size` - `string` - controls the size of the loader indicator. Use a static property from the `ThemeConstants.Loader.Size` class - `Size.Small`, `Size.Medium` (default) or `Size.Large`. See the [Appearance]({%slug loadercontainer-appearance%}) article for more information and examples.
90+
* `Size` - `string` - controls the size of the loader indicator, when a `Template` is *not* used. Use a static property from the `ThemeConstants.Loader.Size` class - `Size.Small`, `Size.Medium` (default) or `Size.Large`. See the [Appearance]({%slug loadercontainer-appearance%}) article for more information and examples.
9191

9292
* `LoaderPosition` - `enum` - configures the position of the loader indicator against the `Text` parameter. Takes a member of the `Telerik.Blazor.Components.LoaderPosition`. You can find more information and examples in the [Appearance]({%slug loadercontainer-appearance%}) article.
9393

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

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,45 @@ async Task OnGridStateInit(GridStateEventArgs&lt;GridModel&gt; args)
273273
</table>
274274

275275
- **DateInput** – removed `ParsingErrorMessage` (obsolete since version 2.8) in favor of `DateInput_ParsingErrorMessage` [localization string]({%slug globalization-localization%}).
276-
- **Loader**, **LoaderContainer** - changed [`Size` parameter]({%slug loader-appearance%}#size) type from `LoaderSize` enum to `string`. 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.
276+
277+
- **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.
278+
- **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+
280+
>caption Loader and LoaderContainer in UI for Blazor up to version 2.30 and after version 3.0
281+
282+
<table>
283+
<thead><tr>
284+
<th>UI for Blazor 2.30</th>
285+
<th>UI for Blazor 3.0</th>
286+
</tr></thead>
287+
<tbody>
288+
<tr>
289+
<td style="vertical-align:top">
290+
<pre><code>
291+
&lt;TelerikLoader
292+
Size="@LoaderSize.Large"
293+
ThemeColor="@ThemeColors.Tertiary" /&gt;
294+
295+
&lt;TelerikLoaderContainer
296+
Size="@LoaderSize.Large"
297+
ThemeColor="@ThemeColors.Tertiary" /&gt;
298+
</code></pre>
299+
</td>
300+
<td style="vertical-align:top">
301+
<pre><code>
302+
&lt;TelerikLoader
303+
Size="@ThemeConstants.Loader.Size.Large"
304+
ThemeColor="@ThemeConstants.Loader.ThemeColor.Tertiary" /&gt;
305+
306+
&lt;TelerikLoaderContainer
307+
Size="@ThemeConstants.Loader.Size.Large"
308+
ThemeColor="@ThemeConstants.Loader.ThemeColor.Tertiary" /&gt;
309+
</code></pre>
310+
</td>
311+
</tr>
312+
</tbody>
313+
</table>
314+
277315
- **TextBox**, **MaskedTextBox**, **TextArea** - `Label` parameter is removed. In 3.2.0 release we will release standalone Floating Label component. In the meantime, you can use the following [KB that shows how to add the label]({%slug inputs-kb-floating-label %}).
278316
- **TileLayout** - introduced optional `Id` attribute for the `TileLayoutItem`. The `OnResize` event handler will receive argument of type `TileLayoutResizeEventArgs`. The `OnReorder` event handler will receive argument of type `TileLayoutReorderEventArgs`. Both event arguments will point to the tile item (`args.Id`) and define if the component should re-render after the event (`args.ShouldRender`).
279317

0 commit comments

Comments
 (0)