akveo / akveo/blur-admin

Ho to dynamically add sub menu items

Open
#320 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.3k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

Can anybody provide an example as to how to create sub menu links dynamically?

I have a route "/rooms" and would like to display a sub menu of the rooms under "rooms" which l obtain via REST with the Rooms Controller and link each sub menu item to "/rooms/info/roomNumber"

- Rooms
-- Room1
-- Room2
-- Room3

I have checked the documentation and found:

baSidebarServiceProvider.addStaticItem({
title: 'Menu Level 1',
icon: 'ion-ios-more'
});

but I'm not sure how to proceed with it.
Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.