diff --git a/doc/tabmenu/BasicDoc.vue b/doc/tabmenu/BasicDoc.vue
index 8148b975a..153dcaf7e 100644
--- a/doc/tabmenu/BasicDoc.vue
+++ b/doc/tabmenu/BasicDoc.vue
@@ -3,17 +3,7 @@
TabMenu requires a collection of menuitems as its model.
@@ -22,42 +12,20 @@
export default {
data() {
return {
- active: 0,
items: [
- { label: 'Home', icon: 'pi pi-fw pi-home', route: '/tabmenu/' },
- { label: 'Calendar', icon: 'pi pi-fw pi-calendar', route: '/tabmenu/calendar' },
- { label: 'Edit', icon: 'pi pi-fw pi-pencil', route: '/tabmenu/edit' },
- { label: 'Documentation', icon: 'pi pi-fw pi-file', route: '/tabmenu/documentation' },
- { label: 'Settings', icon: 'pi pi-fw pi-cog', route: '/tabmenu/settings' }
+ { 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' }
],
code: {
basic: `
-
-
-
- routerProps.navigate($event)" @keydown.enter.space="($event) => routerProps.navigate($event)">
-
- {{ label }}
-
-
-
-
-
+
`,
options: `
@@ -65,43 +33,13 @@ export default {
export default {
data() {
return {
- active: 0,
items: [
- {
- label: 'Home',
- icon: 'pi pi-fw pi-home',
- route: '/'
- },
- {
- label: 'Calendar',
- icon: 'pi pi-fw pi-calendar',
- route: '/calendar'
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- route: '/edit'
- },
- {
- label: 'Documentation',
- icon: 'pi pi-fw pi-file',
- route: '/documentation'
- },
- {
- label: 'Settings',
- icon: 'pi pi-fw pi-cog',
- route: '/settings'
- }
+ { 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' }
]
}
- },
- watch: {
- $route() {
- this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
- }
- },
- mounted() {
- this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
}
}
<\/script>
@@ -109,161 +47,23 @@ export default {
composition: `
diff --git a/doc/tabmenu/CommandDoc.vue b/doc/tabmenu/CommandDoc.vue
new file mode 100644
index 000000000..360c59d82
--- /dev/null
+++ b/doc/tabmenu/CommandDoc.vue
@@ -0,0 +1,147 @@
+
+
+ The command property defines the callback to run when an item is activated by click or a key event.
+
+
+
+
+
+
+
+
diff --git a/doc/tabmenu/ControlledDoc.vue b/doc/tabmenu/ControlledDoc.vue
index c18d14460..0c5ed9845 100644
--- a/doc/tabmenu/ControlledDoc.vue
+++ b/doc/tabmenu/ControlledDoc.vue
@@ -1,9 +1,14 @@
- Visibility of the content is specified with the activeIndex property that supports one or two-way binding.
+ Tabs can be controlled programmatically using activeIndex property.
@@ -13,38 +18,32 @@
export default {
data() {
return {
- active: 3,
+ active: 0,
items: [
- {
- label: 'Home',
- icon: 'pi pi-fw pi-home'
- },
- {
- label: 'Calendar',
- icon: 'pi pi-fw pi-calendar'
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil'
- },
- {
- label: 'Documentation',
- icon: 'pi pi-fw pi-file'
- },
- {
- label: 'Settings',
- icon: 'pi pi-fw pi-cog'
- }
+ { 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' }
],
code: {
basic: `
-
+
+
+
+
+
+
`,
options: `
@@ -53,38 +52,27 @@ export default {
export default {
data() {
return {
- active: 3,
+ active: 0,
items: [
- {
- label: 'Home',
- icon: 'pi pi-fw pi-home'
- },
- {
- label: 'Calendar',
- icon: 'pi pi-fw pi-calendar'
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil'
- },
- {
- label: 'Documentation',
- icon: 'pi pi-fw pi-file'
- },
- {
- label: 'Settings',
- icon: 'pi pi-fw pi-cog'
- }
+ { 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' }
]
- };
+ }
}
-};
+}
<\/script>
`,
composition: `
@@ -92,28 +80,13 @@ export default {
diff --git a/doc/tabmenu/TemplateDoc.vue b/doc/tabmenu/TemplateDoc.vue
new file mode 100644
index 000000000..06e060e9b
--- /dev/null
+++ b/doc/tabmenu/TemplateDoc.vue
@@ -0,0 +1,94 @@
+
+
+ TabMenu offers item customization with the item template that receives the menuitem instance from the model as a parameter.
+
+
+
+
+
+
diff --git a/pages/tabmenu.vue b/pages/tabmenu.vue
deleted file mode 100755
index 94f529e0e..000000000
--- a/pages/tabmenu.vue
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
diff --git a/pages/tabmenu/Calendar.vue b/pages/tabmenu/Calendar.vue
deleted file mode 100755
index 66e22b018..000000000
--- a/pages/tabmenu/Calendar.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
Calendar Component Content
-
-
-
-
diff --git a/pages/tabmenu/Documentation.vue b/pages/tabmenu/Documentation.vue
deleted file mode 100755
index 92ce7b82d..000000000
--- a/pages/tabmenu/Documentation.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
Documentation Component Content
-
-
-
-
diff --git a/pages/tabmenu/Edit.vue b/pages/tabmenu/Edit.vue
deleted file mode 100755
index 1dd70c31f..000000000
--- a/pages/tabmenu/Edit.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
Edit Component Content
-
-
-
-
diff --git a/pages/tabmenu/Settings.vue b/pages/tabmenu/Settings.vue
deleted file mode 100755
index b0c6d8ae4..000000000
--- a/pages/tabmenu/Settings.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
Settings Component Content
-
-
-
-
diff --git a/pages/tabmenu/index.vue b/pages/tabmenu/index.vue
index 467345483..3676b0fe6 100755
--- a/pages/tabmenu/index.vue
+++ b/pages/tabmenu/index.vue
@@ -1,9 +1,69 @@
-
-
Home Component Content
-
+