You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
On our page, we have this navbar section currently:
I want to have a version selector between Resources and the dark/light toggle preferably. The existing slots nav-bar-title-before, nav-bar-title-after, nav-bar-content-before, nav-bar-content-after can only put elements outside of the navbar flow or at the least not at the position I'd like. I have not found a way yet to splice components into specific places in the layout.
The version picker can only be populated at load time because it has to read a javascript file from the server, so I can't just add it as a normal menu, although I want it to look like one.
Describe the solution you'd like
Ideally I'd want some way to access the navbar elements like an array, putting a custom component into it in a position I decide, without having to clone and modify the complete theme.
Describe alternatives you've considered
I've only found issues where people wanted to replace the elements in the navbar with their own implementations completely, not one where you'd be able to place additional elements.
Not a stable option, but you can patch VPNavBar.vue using a vite alias / plugin or pnpm patch / patch-package to add an extra component after VPNavBarMenu.
Is your feature request related to a problem? Please describe.
On our page, we have this navbar section currently:
![image](https://private-user-images.githubusercontent.com/22495855/334701361-c4050d71-56f5-4ad9-a1a4-48e864fb4164.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MTE1ODUsIm5iZiI6MTcxOTYxMTI4NSwicGF0aCI6Ii8yMjQ5NTg1NS8zMzQ3MDEzNjEtYzQwNTBkNzEtNTZmNS00YWQ5LWExYTQtNDhlODY0ZmI0MTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDIxNDgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2M2I3N2FlYjlhMzdkYjViY2U2ZWVhMDNlNWMyZDkyYzg4YWExYTU0OTEwMTJhNzVhYjFiNjhkY2VhYmQzOGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uZ5ra2Ndw8v_IaQ2Wp8bvcoygDpJH28opoUEpEsIV5o)
I want to have a version selector between Resources and the dark/light toggle preferably. The existing slots
nav-bar-title-before
,nav-bar-title-after
,nav-bar-content-before
,nav-bar-content-after
can only put elements outside of the navbar flow or at the least not at the position I'd like. I have not found a way yet to splice components into specific places in the layout.The version picker can only be populated at load time because it has to read a javascript file from the server, so I can't just add it as a normal menu, although I want it to look like one.
Describe the solution you'd like
Ideally I'd want some way to access the navbar elements like an array, putting a custom component into it in a position I decide, without having to clone and modify the complete theme.
Describe alternatives you've considered
I've only found issues where people wanted to replace the elements in the navbar with their own implementations completely, not one where you'd be able to place additional elements.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: