CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

MudSplitter: Multiple contents separated by splitters

Open mueller-marcel opened this issue 2 years ago • 4 comments
trafficstars

Hello there,

I am interested in the MudSplitter and I would like to use it with multiple contents separated by splitters. The basic usage of the MudSplitter is with StartContent and EndContent which alignes some code on the left and the right side of the splitter. How can I achieveto put 3 or more of such contents in a in splitter grid. The following pictures shows what I would like to achieve.

image

I found such a solution in Radzen blazor. Instead of a StartContent and an EndContent they use RadzenSplitterPane, which is a more generic approach to achieve multiple contents separated by splitters.

<RadzenSplitter Orientation="Orientation.Vertical">
    <RadzenSplitterPane>
        Pane B2
    </RadzenSplitterPane>
    <RadzenSplitterPane>
        Pane B3
    </RadzenSplitterPane>
    <RadzenSplitterPane>
        Pane B2
    </RadzenSplitterPane>
</RadzenSplitter>

I would like to request such a feature for the MudSplitter. Maybe this can be realized with the MudItem that are used in the MudGrid as well. It would look like following

<MudSplitter>
    <MudItem>
        Content 1
    </MudItem>
    <MudItem>
        Content 2
    </MudItem>
</MudSplitter

Best regards Marcel Müller

mueller-marcel avatar Oct 26 '23 11:10 mueller-marcel

Hmm, its currently not possible by design. But you can add nested splitters to have multiple areas.

mckaragoz avatar Nov 15 '23 16:11 mckaragoz

Hmm, its currently not possible by design. But you can add nested splitters to have multiple areas.

Yes thank you. I used this workaround. Could this be considered a feature in a future release? (tbd)

mueller-marcel avatar Nov 15 '23 16:11 mueller-marcel

Why not, we can think about whole design of splitter, it currently also doesn't support vertical mode.

mckaragoz avatar Nov 15 '23 16:11 mckaragoz

Why not, we can think about whole design of splitter, it currently also doesn't support vertical mode.

Didn't need it yet but vertical splitters also make sense. If you need help with the redesign let me know 👍

mueller-marcel avatar Nov 16 '23 09:11 mueller-marcel