[PR #518] [CLOSED] Added two levels of indenting to PanelMenuItem #2214

Closed
opened 2026-01-29 18:17:47 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/518
Author: @nitrouscookies
Created: 7/9/2022
Status: Closed

Base: masterHead: panelmenuitem-indent


📝 Commits (1)

  • bff2612 Added two levels of indenting to PanelMenuItem

📊 Changes

3 files changed (+24 additions, -2 deletions)

View changed files

📝 Radzen.Blazor/RadzenPanelMenuItem.razor (+2 -2)
📝 Radzen.Blazor/RadzenPanelMenuItem.razor.cs (+14 -0)
📝 Radzen.Blazor/themes/components/blazor/_panel-menu.scss (+8 -0)

📄 Description

Adding two boolean properties to RadzenPanelMenuItem for two different indent levels.

IndentOnce
IndentTwice

I didn't see an easy way of doing this recursively by checking for how many levels of parent RadzenPanelMenuItems there are, if you have any tips I could potentially modify the request.

Example use:

<RadzenPanelMenuItem Text="More">
    <RadzenPanelMenuItem IndentOnce="true" Text="Item1"></RadzenPanelMenuItem>
    <RadzenPanelMenuItem IndentOnce="true" Text="Item2"></RadzenPanelMenuItem>
    <RadzenPanelMenuItem IndentOnce="true" Text="More items">
        <RadzenPanelMenuItem IndentOnce="true" Text="More sub items">
            <RadzenPanelMenuItem IndentTwice="true" Text="Item1"></RadzenPanelMenuItem>
            <RadzenPanelMenuItem IndentTwice="true" Text="Item2"></RadzenPanelMenuItem>
        </RadzenPanelMenuItem>
    </RadzenPanelMenuItem>
</RadzenPanelMenuItem>```

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/518 **Author:** [@nitrouscookies](https://github.com/nitrouscookies) **Created:** 7/9/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `panelmenuitem-indent` --- ### 📝 Commits (1) - [`bff2612`](https://github.com/radzenhq/radzen-blazor/commit/bff2612ef0173e0188d42544090aadbb8b859aaf) Added two levels of indenting to PanelMenuItem ### 📊 Changes **3 files changed** (+24 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenPanelMenuItem.razor` (+2 -2) 📝 `Radzen.Blazor/RadzenPanelMenuItem.razor.cs` (+14 -0) 📝 `Radzen.Blazor/themes/components/blazor/_panel-menu.scss` (+8 -0) </details> ### 📄 Description Adding two boolean properties to RadzenPanelMenuItem for two different indent levels. IndentOnce IndentTwice I didn't see an easy way of doing this recursively by checking for how many levels of parent RadzenPanelMenuItems there are, if you have any tips I could potentially modify the request. Example use: ``` <RadzenPanelMenuItem Text="More"> <RadzenPanelMenuItem IndentOnce="true" Text="Item1"></RadzenPanelMenuItem> <RadzenPanelMenuItem IndentOnce="true" Text="Item2"></RadzenPanelMenuItem> <RadzenPanelMenuItem IndentOnce="true" Text="More items"> <RadzenPanelMenuItem IndentOnce="true" Text="More sub items"> <RadzenPanelMenuItem IndentTwice="true" Text="Item1"></RadzenPanelMenuItem> <RadzenPanelMenuItem IndentTwice="true" Text="Item2"></RadzenPanelMenuItem> </RadzenPanelMenuItem> </RadzenPanelMenuItem> </RadzenPanelMenuItem>``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:17:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2214