2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Multiple buttons are grouped when wrapped inside an element with <i>p-buttonset</i> class.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<span class="p-buttonset">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<\/script>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<span class="p-buttonset">
|
|
|
|
<Button label="Save" icon="pi pi-check" />
|
|
|
|
<Button label="Delete" icon="pi pi-trash" />
|
|
|
|
<Button label="Cancel" icon="pi pi-times" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|