nextcloud-libraries / nextcloud-libraries/nextcloud-vue
Get the possibility to have a sub-list
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
Hi everyone 👋
As a web developer, I would like to add a sub-list to a NcAppNavigationItem component.
In fact, I would like to get an equivalent of this HTML code :
<ul>
<li>Countries</li>
<ul>
<li>France</li>
<ul>
<li>Paris</li>
<li>Roubaix</li>
</ul>
<li>Geremany</li>
<ul>
<li>Berlin</li>
<li>Munich</li>
</ul>
</ul>
</ul>
Currently, it's not possible. Because, the NcAppNavigation component gives developers just one level of a <ul> html element.
We can write an equivalent to this code :
<NcAppNavigation>
<template #list>
<NcAppNavigationItem name="Countries" />
<ul>
<NcAppNavigationItem name="Paris" />
<NcAppNavigationItem name="Roubaix" />
</ul>
</template>
</NcAppNavigation>
However, this requires to apply a custom css and it may break Nextcloud's flow design.
What do you think ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/components/NcAppNavigation/NcAppNavigation.vue at the referenced lines and the linked NcAppNavigationItem documentation. Clarify the supported nested-list behavior and how it should preserve Nextcloud’s flow design; the issue names no test file, so completion should include a verified nested-navigation result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100