diff --git a/doc/tabmenu/RouterDoc.vue b/doc/tabmenu/RouterDoc.vue
index d6d72fad1..8d07efab6 100644
--- a/doc/tabmenu/RouterDoc.vue
+++ b/doc/tabmenu/RouterDoc.vue
@@ -38,12 +38,38 @@ export default {
],
code: {
basic: `
-
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{ item.label }}
+
+
+
`,
options: `
@@ -52,10 +78,15 @@ export default {
data() {
return {
items: [
- { label: 'Dashboard', icon: 'pi pi-home' },
- { label: 'Transactions', icon: 'pi pi-chart-line' },
- { label: 'Products', icon: 'pi pi-list' },
- { label: 'Messages', icon: 'pi pi-inbox' }
+ { label: 'Router Link', icon: 'pi pi-home', route: '/tabmenu' },
+ {
+ label: 'Programmatic',
+ icon: 'pi pi-palette',
+ command: () => {
+ this.$router.push('/unstyled');
+ }
+ },
+ { label: 'External', icon: 'pi pi-link', url: 'https://vuejs.org/' }
]
}
}
@@ -65,7 +96,20 @@ export default {
composition: `
@@ -73,10 +117,15 @@ export default {
import { ref } from "vue";
const items = ref([
- { label: 'Dashboard', icon: 'pi pi-home' },
- { label: 'Transactions', icon: 'pi pi-chart-line' },
- { label: 'Products', icon: 'pi pi-list' },
- { label: 'Messages', icon: 'pi pi-inbox' }
+ { { label: 'Router Link', icon: 'pi pi-home', route: '/tabmenu' },
+ {
+ label: 'Programmatic',
+ icon: 'pi pi-palette',
+ command: () => {
+ this.$router.push('/unstyled');
+ }
+ },
+ { label: 'External', icon: 'pi pi-link', url: 'https://vuejs.org/' }
]);
<\/script>
`