Skip to content

Commit 05e1111

Browse files
committed
v.2.0.0 release
1 parent 8167f28 commit 05e1111

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

README.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Blazor SplitContainer [![NuGet Package](https://img.shields.io/nuget/v/Toolbelt.Blazor.SplitContainer.svg)](https://www.nuget.org/packages/Toolbelt.Blazor.SplitContainer/)
1+
# Blazor SplitContainer [![NuGet Package](https://img.shields.io/nuget/v/Toolbelt.Blazor.SplitContainer.svg)](https://www.nuget.org/packages/Toolbelt.Blazor.SplitContainer/) [![Discord](https://img.shields.io/discord/798312431893348414?style=flat&logo=discord&logoColor=white&label=Blazor%20Community&labelColor=5865f2&color=gray)](https://discord.com/channels/798312431893348414/1202165955900473375)
22

33
## Summary
44

@@ -21,12 +21,12 @@ A Blazor component to create panes separated by a slidable splitter bar.
2121
dotnet add package Toolbelt.Blazor.SplitContainer
2222
```
2323

24-
3. Open `Toolbelt.Blazor.Splitter` namespace in `_Imports.razor` file.
24+
3. Open `Toolbelt.Blazor.Splitter.V2` namespace in `_Imports.razor` file.
2525

2626
```razor
2727
@* This is "_Imports.razor" *@
2828
...
29-
@using Toolbelt.Blazor.Splitter
29+
@using Toolbelt.Blazor.Splitter.V2
3030
```
3131

3232
4. Then you can use the `SplitContainer` component in your Blazor app.
@@ -84,18 +84,20 @@ See also: https://learn.microsoft.com/aspnet/core/blazor/components/css-isolatio
8484

8585
Parameter Name | Type | Description
8686
----------------------|---------------------|--------------
87-
Id | string? | Gets or sets an id string applied for the "id" attribute of the split container element.
88-
Style | string? | Gets or sets a CSS style string applied for the "style" attribute of the split container element.
89-
Class | string? | Gets or sets a CSS class string applied for the "class" attribute of the split container element.
90-
FirstPane | RenderFragment | The left or top pane in the SplitContainer.
91-
SecondPane | RenderFragment | The right or bottom pane in the SplitContainer.
92-
Orientation | SplitterOrientation | Determines if the spliter is vertical or horizontal. The default value is `SplitterOrientation.Vertical`.
93-
FirstPaneSize | int? | Determines pixel distance of the splitter from the left or top edge.
94-
FirstPaneMinSize | int? | Determines the minimum distance of pixels of the splitter from the left or the top edge of first pane.
95-
SecondPaneSize | int? | Determines pixel distance of the splitter from the right or bottom edge.
96-
SecondPaneMinSize | int? | Determines the minimum distance of pixels of the splitter from the right or the bottom edge of second pane.
97-
FirstPaneSizeChanged | EventCallback<int> | A callback that will be invoked when the size of the first pane is changed.
98-
SecondPaneSizeChanged | EventCallback<int> | A callback that will be invoked when the size of the second pane is changed.
87+
TSize | `Type` | The type of the size value of the panes. It can be `int`, `double`, etc. This is the type parameter for the `SplitContainer` component. You don't have to specify this type parameter explicitly as long as it can be inferred from the other parameters.
88+
Id | `string?` | Gets or sets an id string applied for the "id" attribute of the split container element.
89+
Style | `string?` | Gets or sets a CSS style string applied for the "style" attribute of the split container element.
90+
Class | `string?` | Gets or sets a CSS class string applied for the "class" attribute of the split container element.
91+
FirstPane | `RenderFragment` | The left or top pane in the SplitContainer.
92+
SecondPane | `RenderFragment` | The right or bottom pane in the SplitContainer.
93+
Orientation | `SplitterOrientation` | Determines if the spliter is vertical or horizontal. The default value is `SplitterOrientation.Vertical`.
94+
UnitOfPaneSize | `UnitOfPaneSize` | Determines the unit of the pane size whether it is `Pixel` or `Percent`. The default value is `UnitOfPaneSize.Pixel`.
95+
FirstPaneSize | `TSize?` | Determines distance of the splitter from the left or top edge.
96+
FirstPaneMinSize | `TSize?` | Determines the minimum distance of the splitter from the left or the top edge of first pane.
97+
SecondPaneSize | `TSize?` | Determines distance of the splitter from the right or bottom edge.
98+
SecondPaneMinSize | `TSize?` | Determines the minimum distance of the splitter from the right or the bottom edge of second pane.
99+
FirstPaneSizeChanged | `EventCallback<TSize>` | A callback that will be invoked when the size of the first pane is changed.
100+
SecondPaneSizeChanged | `EventCallback<TSize>` | A callback that will be invoked when the size of the second pane is changed.
99101

100102
> **Warning**
101103
> You can specify the pane size to only either the `FirstPaneSize` or the `SecondPaneSize` parameter. If you specify both the `FirstPaneSize` or the `SecondPaneSize` parameters, then the splitter won't work.

RELEASE-NOTES.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v.2.0.0
2+
Improve: Add support "%" for the unit of size.
3+
14
v.1.1.2.1
25
Improve README - mentioned the CSS isolation
36

SampleApps/BlazorWasmApp/BlazorWasmApp.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<ProjectReference Include="..\..\SplitContainer\SplitContainer.csproj" />
21-
<!--<PackageReference Include="Toolbelt.Blazor.SplitContainer" Version="1.1.2.1" />-->
20+
<!--<ProjectReference Include="..\..\SplitContainer\SplitContainer.csproj" />-->
21+
<PackageReference Include="Toolbelt.Blazor.SplitContainer" Version="2.0.0" />
2222
</ItemGroup>
2323

2424
</Project>

SplitContainer/SplitContainer.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
</PropertyGroup>
1515

1616
<PropertyGroup>
17-
<Version>1.1.2.1</Version>
18-
<Copyright>Copyright © 2023 J.Sakamoto, Mozilla Public License 2.0</Copyright>
17+
<Version>2.0.0</Version>
18+
<Copyright>Copyright © 2023-2024 J.Sakamoto, Mozilla Public License 2.0</Copyright>
1919
<Authors>J.Sakamoto</Authors>
2020
<RepositoryType>git</RepositoryType>
2121
<RepositoryUrl>https://github.com/jsakamoto/Toolbelt.Blazor.SplitContainer/</RepositoryUrl>

SplitContainer/VersionInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace Toolbelt.Blazor.Splitter;
22
internal static class VersionInfo
33
{
4-
internal const string VersionText = "1.1.2.1";
4+
internal const string VersionText = "2.0.0";
55
}

0 commit comments

Comments
 (0)