Files
manja_ui_dev/src/views/base/Popovers.vue
T
2024-11-15 23:55:19 +01:00

80 lines
2.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<CRow>
<CCol :xs="12">
<DocsComponents href="components/popover.html" />
<CCard class="mb-4">
<CCardHeader>
<strong>Vue Popovers</strong> <small>Basic example</small>
</CCardHeader>
<CCardBody>
<DocsExample href="components/popover.html#example">
<CButton
v-c-popover="{
header: 'Popover title',
content:
'And here\s some amazing content. Its very engaging. Right?',
placement: 'right',
}"
color="danger"
size="lg"
>
Click to toggle popover
</CButton>
</DocsExample>
</CCardBody>
</CCard>
</CCol>
<CCol :xs="12">
<CCard class="mb-4">
<CCardHeader>
<strong>Vue Popover</strong> <small>Four directions</small>
</CCardHeader>
<CCardBody>
<p class="text-body-secondary small">
Four options are available: top, right, bottom, and left aligned.
Directions are mirrored when using CoreUI for Vue in RTL.
</p>
<DocsExample href="components/popover.html#four-directions">
<CButton
v-c-popover="{
content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'top',
}"
color="secondary"
>Popover on top</CButton
>
<CButton
v-c-popover="{
content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'right',
}"
color="secondary"
>Popover on right</CButton
>
<CButton
v-c-popover="{
content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'bottom',
}"
color="secondary"
>Popover on bottom</CButton
>
<CButton
v-c-popover="{
content:
'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
placement: 'left',
}"
color="secondary"
>Popover on left</CButton
>
</DocsExample>
</CCardBody>
</CCard>
</CCol>
</CRow>
</template>