Skip to content

Commit

Permalink
Merge pull request #5857 from nextcloud-libraries/fix/5831/use-nav-se…
Browse files Browse the repository at this point in the history
…arch-in-docs

fix(NcAppNavigation): update docs example with NcAppNavigationSearch component
  • Loading branch information
Antreesy authored Jul 23, 2024
2 parents 8129292 + 5638609 commit 41b9f0f
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@
<template>
<div class="styleguide-nc-content">
<NcAppNavigation>
<template>
<div class="navigation__header">
<NcTextField :value.sync="searchValue" label="Search …" />
<NcActions>
<NcActionButton close-after-click @click="showModal = true">
<template #icon>
<IconCog />
</template>
App settings (close after click)
</NcActionButton>
<NcActionButton @click="showModal = true">
<template #icon>
<IconCog />
</template>
App settings (handle only click)
</NcActionButton>
</NcActions>
</div>
<template #search>
<NcAppNavigationSearch v-model="searchValue">
<template #actions>
<NcActions>
<NcActionButton close-after-click @click="showModal = true">
<template #icon>
<IconCog :size="20" />
</template>
App settings (close after click)
</NcActionButton>
<NcActionButton @click="showModal = true">
<template #icon>
<IconCog :size="20" />
</template>
App settings (handle only click)
</NcActionButton>
</NcActions>
</template>
</NcAppNavigationSearch>
</template>
<template #list>
<NcAppNavigationItem v-for="item in items" :key="item" :name="item">
Expand Down

0 comments on commit 41b9f0f

Please sign in to comment.