| Name | Type | Default |
|
delay
# |
Number
|
50
|
Specifies the interval between two Click events. This property is available only in the jqxRepeatButton. The jqxRepeatButton raises Click events repeatedly when the button is pressed.
<template>
<div>
<JqxRepeatButton
ref="myRepeatButton"
@click="onClick()"
:value="'Click'"
:width="80"
:delay="50"
/>
<div>{{ counter }}</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
const counter = ref(0);
function onClick() {
this.counter++;
}
</script>
|
|
disabled
# |
Boolean
|
false
|
Enables or disables the button.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :disabled="true" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the button's height.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :height="40" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
imgSrc
# |
String
|
""
|
Sets or gets the button's image source.
<template>
<JqxRepeatButton
ref="myRepeatButton"
:value="'Click'"
:width="80"
:imgSrc="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
/>
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
imgWidth
# |
Number
|
16
|
Sets or gets the button's image width.
<template>
<JqxRepeatButton
ref="myRepeatButton"
:value="'Click'"
:width="80"
:imgSrc="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
:imgWidth="16"
/>
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
imgHeight
# |
Number
|
16
|
Sets or gets the button's image height.
<template>
<JqxRepeatButton
ref="myRepeatButton"
:value="'Click'"
:width="80"
:imgSrc="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
:imgHeight="16"
/>
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
imgPosition
# |
String
|
'center'
|
Sets or gets the button's image position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight".
<template>
<JqxRepeatButton
ref="myRepeatButton"
:value="'Click'"
:width="80"
:imgSrc="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
:imgPosition="'left'"
/>
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
roundedCorners
# |
String
|
all
|
Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius.
Possible Values:
'all' - for all corners
'top'- for top corners
'bottom' - for bottom corners
'left' - for left corners
'right' - for right corners
'top-right' - for top right corners
'top-left' - for top left corners
'bottom-right' - for bottom right corners
'bottom-left' - for bottom left corners
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :roundedCorners="'top'" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.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>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :rtl="true" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
textPosition
# |
String
|
|
Sets or gets the button's text position. Possible values: "left", "top", "center", "bottom", "right", "topLeft", "bottomLeft", "topRight", "bottomRight".
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :textPosition="'left'" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
textImageRelation
# |
String
|
'overlay'
|
Sets or gets the button's text image relation. Possible values: "imageBeforeText", "imageAboveText", "textAboveImage", "textBeforeImage" and "overlay".
<template>
<JqxRepeatButton
ref="myRepeatButton"
:value="'Click'"
:width="80"
:imgSrc="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
:textImageRelation="'imageBeforeText'"
/>
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :theme="'material'" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
template
# |
String
|
'default'
|
Determines the button's template as an alternative of the default styles.
Possible Values:
'default' - the default button's template. The button's style depends only on its "theme" property value.
'primary' - dark blue button for extra visual weight.
'success' - green button for successful or positive action.
'warning' - orange button which indicates caution.
'danger' - red button which indicates a dangerous or negative action.
'inverse' - dark gray button, not tied to a semantic action or use.
'info' - blue button, not tied to a semantic action or use.
'link' - making it look like a link .
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :template="'success'" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
toggled
# |
Boolean
|
false
|
Sets or gets the button's toggle state. ( available in jqxToggleButton ).
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" :toggled="true" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
width
# |
Number | String
|
null
|
Sets ot gets the button's width.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
value
# |
String
|
""
|
Sets or gets the button's value.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Button'" :width="80" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
</script>
|
|
|
|
click
# |
Event
|
|
This event is triggered when the button is clicked.
Code examples #
Bind to the click event of jqxRepeatButton.
<template>
<JqxRepeatButton ref="myRepeatButton" @click="onClick($event)" :value="'Click'" :width="80" />
</template>
<script setup>
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
function onClick(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
const myRepeatButton = ref(null);
onMounted(() => {
myRepeatButton.value.destroy();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
const myRepeatButton = ref(null);
onMounted(() => {
myRepeatButton.value.focus();
});
</script>
|
|
render
# |
None
|
None
|
Renders the widget.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
const myRepeatButton = ref(null);
onMounted(() => {
myRepeatButton.value.render();
});
</script>
|
|
val
# |
value
|
String
|
Sets or gets the value.
<template>
<JqxRepeatButton ref="myRepeatButton" :value="'Click'" :width="80" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxrepeatbutton.vue';
const myRepeatButton = ref(null);
onMounted(() => {
myRepeatButton.value.val('Value');
});
</script>
|