Blazor- Toolbelt.Blazor.SplitContainer
[删除(380066935@qq.com或微信通知)]
Blazor SplitContainer
jsakamoto/Toolbelt.Blazor.SplitContainer: A Blazor component to create panes separated by a slidable splitter bar. (github.com)
A Blazor component to create panes separated by a slidable splitter bar.
How to use
Installation
- Add package to your project like this.
dotnet add package Toolbelt.Blazor.SplitContainer
- Open
Toolbelt.Blazor.Splitter
namespace in_Imports.razor
file.
@* This is "_Imports.razor" *@
...
@using Toolbelt.Blazor.Splitter
- Then you can use the
SplitContainer
component in your Blazor app.
<SplitContainer @bind-FirstPaneSize="_PaneSize">
<FirstPane>
<h1>Hello</h1>
</FirstPane>
<SecondPane>
<h1>World</h1>
</SecondPane>
</SplitContainer>
@code {
private int _PaneSize = 80;
}