2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-04-18 14:22:30 +00:00
|
|
|
<p>Drawer location is configured with the <i>position</i> property that can take <i>left</i>, <i>right</i>, <i>top</i> and <i>bottom</i> as valid values.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex gap-2 justify-center">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" />
|
|
|
|
</div>
|
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleLeft" header="Left Drawer">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleRight" header="Right Drawer" position="right">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleTop" header="Top Drawer" position="top" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleBottom" header="Bottom Drawer" position="bottom" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visibleLeft: false,
|
|
|
|
visibleRight: false,
|
|
|
|
visibleTop: false,
|
|
|
|
visibleBottom: false,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex gap-2 justify-center">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" />
|
|
|
|
</div>
|
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleLeft" header="Left Drawer">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleRight" header="Right Drawer" position="right">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleTop" header="Top Drawer" position="top" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleBottom" header="Bottom Drawer" position="bottom" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-10-15 09:38:39 +00:00
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex gap-2 justify-center">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" />
|
|
|
|
</div>
|
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleLeft" header="Left Drawer">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleRight" header="Right Drawer" position="right">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleTop" header="Top Drawer" position="top" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleBottom" header="Bottom Drawer" position="bottom" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visibleLeft: false,
|
|
|
|
visibleRight: false,
|
|
|
|
visibleTop: false,
|
|
|
|
visibleBottom: false
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex gap-2 justify-center">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" />
|
|
|
|
</div>
|
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleLeft" header="Left Drawer">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleRight" header="Right Drawer" position="right">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleTop" header="Top Drawer" position="top" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2024-04-18 14:22:30 +00:00
|
|
|
<Drawer v-model:visible="visibleBottom" header="Bottom Drawer" position="bottom" style="height: auto">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
2024-04-18 14:22:30 +00:00
|
|
|
</Drawer>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const visibleLeft = ref(false);
|
|
|
|
const visibleRight = ref(false);
|
|
|
|
const visibleTop = ref(false);
|
|
|
|
const visibleBottom = ref(false);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|