diff --git a/doc/splitbutton/BasicDoc.vue b/doc/splitbutton/BasicDoc.vue
index a194231ba..5e138e593 100644
--- a/doc/splitbutton/BasicDoc.vue
+++ b/doc/splitbutton/BasicDoc.vue
@@ -3,7 +3,7 @@
SplitButton has a default command button and a collection of additional options defined by the model property.
-
+
@@ -15,36 +15,33 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
+
`,
options: `
-
+
@@ -55,26 +52,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -90,7 +84,7 @@ export default {
-
+
@@ -101,26 +95,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/DisabledDoc.vue b/doc/splitbutton/DisabledDoc.vue
index c276d0386..5e52a6843 100644
--- a/doc/splitbutton/DisabledDoc.vue
+++ b/doc/splitbutton/DisabledDoc.vue
@@ -3,7 +3,7 @@
When disabled is present, the element cannot be edited and focused.
-
+
@@ -15,36 +15,33 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
+
`,
options: `
-
+
@@ -55,26 +52,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -89,7 +83,7 @@ export default {
-
+
@@ -100,26 +94,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/IconsDoc.vue b/doc/splitbutton/IconsDoc.vue
new file mode 100644
index 000000000..d6bc5707e
--- /dev/null
+++ b/doc/splitbutton/IconsDoc.vue
@@ -0,0 +1,140 @@
+
+
+ The buttons and menuitems have support to display icons.
+
+
+
+
+
+
+
+
diff --git a/doc/splitbutton/OutlinedDoc.vue b/doc/splitbutton/OutlinedDoc.vue
index d3fb87729..836440cee 100644
--- a/doc/splitbutton/OutlinedDoc.vue
+++ b/doc/splitbutton/OutlinedDoc.vue
@@ -3,14 +3,14 @@
Outlined buttons display a border without a background initially.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -22,50 +22,47 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -76,26 +73,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
}
},
@@ -111,14 +105,14 @@ export default {
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -129,26 +123,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/RaisedDoc.vue b/doc/splitbutton/RaisedDoc.vue
index c52148266..a617780de 100644
--- a/doc/splitbutton/RaisedDoc.vue
+++ b/doc/splitbutton/RaisedDoc.vue
@@ -3,14 +3,14 @@
Raised buttons display a shadow to indicate elevation.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -22,50 +22,47 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -76,26 +73,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -111,14 +105,14 @@ export default {
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -129,26 +123,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/RaisedTextDoc.vue b/doc/splitbutton/RaisedTextDoc.vue
index 509af7e8e..3f26896b3 100644
--- a/doc/splitbutton/RaisedTextDoc.vue
+++ b/doc/splitbutton/RaisedTextDoc.vue
@@ -3,13 +3,13 @@
Text buttons can be displayed as raised as well for elevation.
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -21,48 +21,45 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -73,26 +70,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -108,13 +102,13 @@ export default {
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -125,26 +119,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/RoundedDoc.vue b/doc/splitbutton/RoundedDoc.vue
index aca17a104..eaa21c27a 100644
--- a/doc/splitbutton/RoundedDoc.vue
+++ b/doc/splitbutton/RoundedDoc.vue
@@ -3,14 +3,14 @@
Rounded buttons have a circular border radius.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -22,50 +22,47 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -76,26 +73,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -111,14 +105,14 @@ export default {
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -129,26 +123,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/SeverityDoc.vue b/doc/splitbutton/SeverityDoc.vue
index 215972bee..a8b249776 100644
--- a/doc/splitbutton/SeverityDoc.vue
+++ b/doc/splitbutton/SeverityDoc.vue
@@ -3,14 +3,14 @@
The severity property defines the variant of a button.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -22,50 +22,47 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -76,26 +73,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -111,14 +105,14 @@ export default {
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -129,26 +123,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/doc/splitbutton/TemplateDoc.vue b/doc/splitbutton/TemplateDoc.vue
index d727c9c2f..48f83e229 100644
--- a/doc/splitbutton/TemplateDoc.vue
+++ b/doc/splitbutton/TemplateDoc.vue
@@ -3,9 +3,11 @@
Custom content inside a button is defined as children.
-
-
- PrimeVue
+
+
+
+ PrimeVue
+
@@ -41,18 +43,22 @@ export default {
],
code: {
basic: `
-
-
- PrimeVue
+
+
+
+ PrimeVue
+
`,
options: `
-
-
- PrimeVue
+
+
+
+ PrimeVue
+
@@ -99,9 +105,11 @@ export default {
-
-
- PrimeVue
+
+
+
+ PrimeVue
+
diff --git a/doc/splitbutton/TextDoc.vue b/doc/splitbutton/TextDoc.vue
index 18ed80e8d..b2992a0e3 100644
--- a/doc/splitbutton/TextDoc.vue
+++ b/doc/splitbutton/TextDoc.vue
@@ -3,13 +3,13 @@
Text buttons are displayed as textual elements.
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -21,48 +21,45 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
],
code: {
basic: `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
`,
options: `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -73,26 +70,23 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
]
};
},
@@ -108,13 +102,13 @@ export default {
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -125,26 +119,23 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
label: 'Vue Website',
- icon: 'pi pi-external-link',
command: () => {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', to: '/fileupload' }
];
const save = () => {
diff --git a/pages/splitbutton/index.vue b/pages/splitbutton/index.vue
index 6d7bfa2e9..4e337ca82 100755
--- a/pages/splitbutton/index.vue
+++ b/pages/splitbutton/index.vue
@@ -14,6 +14,7 @@
import AccessibilityDoc from '@/doc/splitbutton/AccessibilityDoc.vue';
import BasicDoc from '@/doc/splitbutton/BasicDoc.vue';
import DisabledDoc from '@/doc/splitbutton/DisabledDoc.vue';
+import IconsDoc from '@/doc/splitbutton/IconsDoc.vue';
import ImportDoc from '@/doc/splitbutton/ImportDoc.vue';
import OutlinedDoc from '@/doc/splitbutton/OutlinedDoc.vue';
import RaisedDoc from '@/doc/splitbutton/RaisedDoc.vue';
@@ -40,6 +41,11 @@ export default {
label: 'Basic',
component: BasicDoc
},
+ {
+ id: 'icons',
+ label: 'Icons',
+ component: IconsDoc
+ },
{
id: 'severity',
label: 'Severity',