primevue-mirror/apps/showcase/doc/togglebutton/pt/PTViewer.vue

25 lines
560 B
Vue
Raw Normal View History

2024-09-19 07:02:49 +00:00
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<ToggleButton v-model="checked" onIcon="pi pi-check" offIcon="pi pi-times" class="w-full sm:w-40" />
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
checked: false,
docs: [
{
data: getPTOptions('ToggleButton'),
key: 'ToggleButton'
}
]
};
}
};
</script>