ButtonSet added to docs

pull/5300/head
tugcekucukoglu 2024-02-16 12:18:56 +03:00
parent df8ad26380
commit 5b2c109029
3 changed files with 11 additions and 11 deletions

View File

@ -1,13 +1,13 @@
<template> <template>
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs">
<p>Multiple buttons are grouped when wrapped inside an element with <i>p-buttonset</i> class.</p> <p>Multiple buttons are grouped when wrapped inside an element with <i>ButtonSet</i> component.</p>
</DocSectionText> </DocSectionText>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<span class="p-buttonset"> <ButtonSet>
<Button label="Save" icon="pi pi-check" /> <Button label="Save" icon="pi pi-check" />
<Button label="Delete" icon="pi pi-trash" /> <Button label="Delete" icon="pi pi-trash" />
<Button label="Cancel" icon="pi pi-times" /> <Button label="Cancel" icon="pi pi-times" />
</span> </ButtonSet>
</div> </div>
<DocSectionCode :code="code" /> <DocSectionCode :code="code" />
</template> </template>
@ -18,20 +18,20 @@ export default {
return { return {
code: { code: {
basic: ` basic: `
<span class="p-buttonset"> <ButtonSet>
<Button label="Save" icon="pi pi-check" /> <Button label="Save" icon="pi pi-check" />
<Button label="Delete" icon="pi pi-trash" /> <Button label="Delete" icon="pi pi-trash" />
<Button label="Cancel" icon="pi pi-times" /> <Button label="Cancel" icon="pi pi-times" />
</span> </ButtonSet>
`, `,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<span class="p-buttonset"> <ButtonSet>
<Button label="Save" icon="pi pi-check" /> <Button label="Save" icon="pi pi-check" />
<Button label="Delete" icon="pi pi-trash" /> <Button label="Delete" icon="pi pi-trash" />
<Button label="Cancel" icon="pi pi-times" /> <Button label="Cancel" icon="pi pi-times" />
</span> </ButtonSet>
</div> </div>
</template> </template>
@ -41,11 +41,11 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<span class="p-buttonset"> <ButtonSet>
<Button label="Save" icon="pi pi-check" /> <Button label="Save" icon="pi pi-check" />
<Button label="Delete" icon="pi pi-trash" /> <Button label="Delete" icon="pi pi-trash" />
<Button label="Cancel" icon="pi pi-times" /> <Button label="Cancel" icon="pi pi-times" />
</span> </ButtonSet>
</div> </div>
</template> </template>

View File

@ -30,7 +30,7 @@ const form = [
'TriStateCheckbox' 'TriStateCheckbox'
]; ];
const button = ['Button', 'SpeedDial', 'SplitButton']; const button = ['Button', 'ButtonSet', 'SpeedDial', 'SplitButton'];
const data = ['Column', 'Row', 'ColumnGroup', 'DataTable', 'DataView', 'DataViewLayoutOptions', 'OrderList', 'OrganizationChart', 'Paginator', 'PickList', 'Tree', 'TreeTable', 'Timeline', 'VirtualScroller']; const data = ['Column', 'Row', 'ColumnGroup', 'DataTable', 'DataView', 'DataViewLayoutOptions', 'OrderList', 'OrganizationChart', 'Paginator', 'PickList', 'Tree', 'TreeTable', 'Timeline', 'VirtualScroller'];

View File

@ -4,7 +4,7 @@
header="Button" header="Button"
description="Button is an extension to standard input element with icons and theming." description="Button is an extension to standard input element with icons and theming."
:componentDocs="docs" :componentDocs="docs"
:apiDocs="['Button']" :apiDocs="['Button', 'ButtonSet']"
:ptTabComponent="ptComponent" :ptTabComponent="ptComponent"
:themingDocs="themingDoc" :themingDocs="themingDoc"
/> />