| Name | Type | Default |
|
arrowOffsetValue
# |
Number
|
0
|
Sets or gets the arrow's offset from its default position.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:arrowOffsetValue="50"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
animationOpenDelay
# |
String | Number
|
'fast'
|
The time for showing of the widget.
Possible Values:
'fast'
'slow'
time in milliseconds e.g. 1000
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:animationOpenDelay="1000"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
animationCloseDelay
# |
String | Number
|
'fast'
|
The time for showing of the widget.
Possible Values:
'fast'
'slow'
time in milliseconds e.g. 1000
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:animationCloseDelay="1000"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
autoClose
# |
Boolean
|
true
|
Sets or gets the closing of the widget after click outside of the popover.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:autoClose="false"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
animationType
# |
String
|
'fade'
|
Sets the type of animation.
Possible Values:
'none'
'fade'
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:animationType="'none'"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the popover's height.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:height="60"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
initContent
# |
Function
|
null
|
Initializes the popover's content.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:initContent="initContent"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
function initContent() {
alert('Init content is called!');
}
</script>
|
|
isModal
# |
Boolean
|
false
|
Sets or gets whether the popover is displayed as a modal dialog. If the jqxPopover's mode is set to modal, the popover blocks user interaction with the underlying user interface.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:isModal="true"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
offset
# |
Object
|
null
|
Sets or gets the Popover's offset from its position.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:offset="{ left: 10, top: 10 }"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
position
# |
String
|
'left'
|
Sets or gets the position of the popover. The position presents the orientation of the popover compared to the selector element
Possible Values:
'top'
'right'
'bottom'
'left'
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:position="'right'"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:rtl="true"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
selector
# |
String
|
null
|
Sets or gets the Popover's selector. The selector is the element where the Popover is displayed.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
showArrow
# |
Boolean
|
true
|
Sets or gets the displaying of the popover's arrow.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:showArrow="false"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
showCloseButton
# |
Boolean
|
false
|
Sets or gets whether the close button is displayed.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the popover's width.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:width="200"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
title
# |
String
|
""
|
Sets or gets the popover's title.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
- Include the theme's CSS file after jqx.base.css.
The following code example adds the 'material' theme. <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.material.css" type="text/css" />
- Set the widget's theme property to 'material' when you initialize it.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
:theme="'material'"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
</script>
|
|
|
|
close
# |
Event
|
|
This event is triggered when the popover is closed.
Code examples #
Bind to the close event of jqxPopover.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
@close="onClose($event)"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
function onClose(event) {
alert('do something...');
}
</script>
|
|
open
# |
Event
|
|
This event is triggered when the popover is opened.
Code examples #
Bind to the open event of jqxPopover.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover
ref="myPopover"
@open="onOpen($event)"
:title="'Title'"
:selector="'#button'"
:showCloseButton="true"
>
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
function onOpen(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
close
# |
None
|
None
|
Closes the popover.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
<div>
<JqxButton @click="open">Open</JqxButton>
<JqxButton @click="close">Close</JqxButton>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myPopover = ref(null);
function open() {
myPopover.value.open();
}
function close() {
myPopover.value.close();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 100px;
margin-right: 20px;
}
</style>
|
|
destroy
# |
None
|
None
|
Destroy the widget.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
const myPopover = ref(null);
onMounted(() => {
myPopover.value.destroy();
});
</script>
|
|
open
# |
None
|
None
|
Open the popover.
<template>
<div>
<button style="margin-left: 50px" id="button">Click me</button>
<JqxPopover ref="myPopover" :title="'Title'" :selector="'#button'" :showCloseButton="true">
<div>Popover content</div>
</JqxPopover>
<div>
<JqxButton @click="open">Open</JqxButton>
<JqxButton @click="close">Close</JqxButton>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxPopover from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpopover.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myPopover = ref(null);
function open() {
myPopover.value.open();
}
function close() {
myPopover.value.close();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 100px;
margin-right: 20px;
}
</style>
|