Comments (3)
Also noticing the same thing. The IEnumerable<MenuItem>
collection is apparently not populated in that mode.
from menu.
I figured it out... you need to wrap the sub menu items in <MenuTemplate>....</MenuTemplate>
like the documentation example. So:
<BlazoredSubMenu Header="Sub Menu">
<MenuTemplate>
<BlazoredMenuItem>
<NavLink href="counter">Counter</NavLink>
</BlazoredMenuItem>
<BlazoredMenuItem>
<NavLink href="fetchdata">Fetch data</NavLink>
</BlazoredMenuItem>
</MenuTemplate>
</BlazoredSubMenu>
from menu.
Thanks for spotting that one @aarondcoleman. I've updated the sample in the repo
from menu.
Related Issues (18)
- Razor Components Project HOT 2
- This stuff doesn't work well. HOT 5
- Menu images? HOT 7
- Keep submenu open when navigating to new page HOT 5
- How to display menu correctly? HOT 1
- Renamed styles.css HOT 1
- BlazoredSubMenu Feature request HOT 1
- How to insert an icon in front of the submenu header? HOT 2
- [Feature Request] Display Icon for sub menu instead of + or - HOT 3
- nested submenu support? HOT 1
- [Bug]
- Add Ability to add CSS classes HOT 1
- [Bug] IconClassToClose or IconClassToOpen not specified HOT 2
- Clicking Plus causes open/close immediately HOT 1
- SubMenu should have a child component for Header HOT 1
- Server Side Blazor support HOT 2
- Mobile layout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from menu.