Trying to add SubMenu like League Info #249
Unanswered
JimNayzium
asked this question in
Help!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found the tabs.js and was able to add links to the main navigation area.
Then I tried to copy and paste the entire League Info tab with the children array so I could recreate one like that.
I was successful at that. I renamed it and entered the routes and see all that.
However, when I click the new link in the browser it opens the League Info tab only. Meaning my new one opens the League Info submenu and the League Info tab getting clicked opens the League Info submenu.
I found the NavLarge.svelte file and it appears it only creates ONE instance of one sub-menu maybe?
I am very very very new to svelte in so maybe I missed something?
I assumed when I found the tabs.js I was home free but I guess there is more to add.
I played with the looping {each} on the html side of the NavLarge.svelte file and couldn't hone it in.
I also thought maybe there was an identifier I failed to add but I didnt' see on in the League Info area of the tabs.js. I assumed it would be a property under it but it wasn't.
How do I add a main-nav link with a submenu of links like League Info?
THANKS for the great codebase to start with!
Beta Was this translation helpful? Give feedback.
All reactions