mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
67 lines
2.8 KiB
Plaintext
67 lines
2.8 KiB
Plaintext
@using System.Diagnostics
|
|
@inherits RadzenComponent
|
|
|
|
|
|
@if (Visible)
|
|
{
|
|
<div @ref=Element id="@GetId()" @attributes="Attributes" class="@GetComponentCssClass()" style="flex-basis: @Size; @Style" data-index="@Index">
|
|
@ChildContent
|
|
@if (Splitter?.IsResizing == true)
|
|
{
|
|
<div class="rz-splitter-mask" />
|
|
}
|
|
</div>
|
|
|
|
|
|
@if (!IsLast && BarVisible)
|
|
{
|
|
<div class="@GetComponentBarCssClass()"
|
|
@onclick:preventDefault="true"
|
|
@onclick:stopPropagation="true"
|
|
@onpointerdown=@(args => Splitter!.StartResize(args, Index))
|
|
@ondblclick=@OnDoubleClick
|
|
@ondblclick:preventDefault="true"
|
|
@ondblclick:stopPropagation="true">
|
|
|
|
@if (IsCollapsible)
|
|
{
|
|
<span tabindex="0" class="rz-collapse" id="@(GetId() + "-collapse")"
|
|
role="button"
|
|
aria-label="@CollapseAriaLabel"
|
|
aria-expanded="@AriaExpanded"
|
|
@onkeydown="@(args => OnKeyPress(args, false))" @onkeydown:preventDefault=preventKeyPress @onkeydown:stopPropagation=stopKeypressPropagation
|
|
@onmousedown:preventDefault="true" @onmousedown:stopPropagation="true" @onmousedown=@(args => Splitter!.OnCollapse(Index))>
|
|
</span>
|
|
}
|
|
|
|
@if (IsResizable)
|
|
{
|
|
<span tabindex="0" class="rz-resize" id="@(GetId() + "-resize")"
|
|
role="separator"
|
|
aria-orientation="@AriaOrientation"
|
|
aria-controls="@AriaControls"
|
|
aria-labelledby="@AriaLabelledBy"
|
|
aria-label="@AriaLabel"
|
|
aria-valuenow="@AriaValueNow.ToString(System.Globalization.CultureInfo.InvariantCulture)"
|
|
aria-valuemin="@AriaValueMin.ToString(System.Globalization.CultureInfo.InvariantCulture)"
|
|
aria-valuemax="@AriaValueMax.ToString(System.Globalization.CultureInfo.InvariantCulture)"
|
|
@onkeydown="@(args => OnKeyPress(args))" @onkeydown:preventDefault=preventKeyPress @onkeydown:stopPropagation=stopKeydownPropagation>
|
|
</span>
|
|
}
|
|
|
|
@if (IsExpandable)
|
|
{
|
|
<span tabindex="0" class="rz-expand" id="@(GetId() + "-expand")"
|
|
role="button"
|
|
aria-label="@ExpandAriaLabel"
|
|
aria-expanded="@AriaExpanded"
|
|
@onkeydown="@(args => OnKeyPress(args, true))" @onkeydown:preventDefault=preventKeyPress @onkeydown:stopPropagation=stopKeypressPropagation
|
|
@onmousedown:preventDefault="true" @onmousedown:stopPropagation="true" @onmousedown=@(args => Splitter!.OnExpand(Index))>
|
|
</span>
|
|
}
|
|
|
|
|
|
</div>
|
|
}
|
|
}
|