| Name | Type | Default |
|
animationShowDelay
# |
Number
|
250
|
Sets or gets the delay of the fade animation when the Radio Button is going to be checked.
<template>
<JqxRadioButton ref="myRadioButton" :animationShowDelay="500"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
animationHideDelay
# |
Number
|
300
|
Sets or gets the delay of the fade animation when the Radio Button is going to be unchecked.
<template>
<div>
<JqxRadioButton ref="myRadioButton" :animationHideDelay="500">
Radio Button 1
</JqxRadioButton>
<JqxRadioButton ref="myRadioButton" :animationHideDelay="500">
Radio Button 2
</JqxRadioButton>
</div>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
boxSize
# |
String
|
"13px"
|
Sets or gets the Radio Button's size.
<template>
<JqxRadioButton ref="myRadioButton" :boxSize="'18px'"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
checked
# |
Boolean
|
false
|
Sets or gets whether the radio button is checked.
<template>
<JqxRadioButton ref="myRadioButton" :checked="true"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Sets or gets whether the Radio Button is disabled.
<template>
<JqxRadioButton ref="myRadioButton" :disabled="true"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
enableContainerClick
# |
Boolean
|
true
|
Sets or gets whether the clicks on the container are handled as clicks on the rounded button.
<template>
<JqxRadioButton ref="myRadioButton" :enableContainerClick="false">
Radio Button
</JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
groupName
# |
String
|
""
|
Sets or gets the group name. When this property is set, checking a radio button from the group, will uncheck only the radio buttons from the same group.
<template>
<div>
<JqxRadioButton ref="myRadioButton" :groupName="'Group1'">Group1 Button</JqxRadioButton>
<JqxRadioButton ref="myRadioButton" :groupName="'Group1'">Group1 Button</JqxRadioButton>
<br />
<JqxRadioButton ref="myRadioButton" :groupName="'Group2'">Group2 Button</JqxRadioButton>
<JqxRadioButton ref="myRadioButton" :groupName="'Group2'">Group2 Button</JqxRadioButton>
</div>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
hasThreeStates
# |
Boolean
|
false
|
Sets or gets whether the radio button has 3 states - checked, unchecked and indeterminate.
<template>
<div>
<JqxRadioButton ref="myRadioButton" :checked="null" :hasThreeStates="true">
Radio Button
</JqxRadioButton>
<JqxRadioButton ref="myRadioButton" :checked="null" :hasThreeStates="true">
Radio Button
</JqxRadioButton>
</div>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the jqxRadioButton's height.
<template>
<JqxRadioButton ref="myRadioButton" :height="50"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.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>
<JqxRadioButton ref="myRadioButton" :rtl="true"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxRadioButton ref="myRadioButton" :theme="'material'"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the jqxRadioButton's width.
<template>
<JqxRadioButton ref="myRadioButton" :width="150"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
</script>
|
|
|
|
checked
# |
Event
|
|
This event is triggered when the Radio Button is checked.
Code examples #
Bind to the checked event of jqxRadioButton.
<template>
<JqxRadioButton ref="myRadioButton" @checked="onChecked($event)"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
function onChecked(event) {
alert('do something...');
}
</script>
|
|
change
# |
Event
|
|
This is triggered when the Radio Button's state changes from one state to another.
Code examples #
Bind to the change event of jqxRadioButton.
<template>
<JqxRadioButton ref="myRadioButton" @change="onChange($event)"> Radio Button </JqxRadioButton>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
unchecked
# |
Event
|
|
This event is triggered when the Radio Button is unchecked.
Code examples #
Bind to the unchecked event of jqxRadioButton.
<template>
<div>
<JqxRadioButton ref="myRadioButton1" @unchecked="onUnchecked($event)"
>Radio Button 1</JqxRadioButton
>
<JqxRadioButton ref="myRadioButton2" @unchecked="onUnchecked($event)"
>Radio Button 2</JqxRadioButton
>
</div>
</template>
<script setup>
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
function onUnchecked(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
check
# |
None
|
None
|
Checks the radio button.
<template>
<div>
<JqxRadioButton ref="myRadioButton">Radio Button</JqxRadioButton>
<JqxButton @click="check()">Check</JqxButton>
<JqxButton @click="uncheck()">Uncheck</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myRadioButton = ref(null);
function check() {
myRadioButton.value.check();
}
function uncheck() {
myRadioButton.value.uncheck();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
disable
# |
None
|
None
|
Disables the radio button.
<template>
<div>
<JqxRadioButton ref="myRadioButton">Radio Button</JqxRadioButton>
<JqxButton @click="enable()">Enable</JqxButton>
<JqxButton @click="disable()">Disable</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myRadioButton = ref(null);
function enable() {
myRadioButton.value.enable();
}
function disable() {
myRadioButton.value.disable();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxRadioButton ref="myRadioButton"> Radio Button </JqxRadioButton>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
const myRadioButton = ref(null);
onMounted(() => {
myRadioButton.value.destroy();
});
</script>
|
|
enable
# |
None
|
None
|
Enables the radio button.
<template>
<div>
<JqxRadioButton ref="myRadioButton">Radio Button</JqxRadioButton>
<JqxButton @click="enable()">Enable</JqxButton>
<JqxButton @click="disable()">Disable</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myRadioButton = ref(null);
function enable() {
myRadioButton.value.enable();
}
function disable() {
myRadioButton.value.disable();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxRadioButton ref="myRadioButton"> Radio Button </JqxRadioButton>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
const myRadioButton = ref(null);
onMounted(() => {
myRadioButton.value.focus();
});
</script>
|
|
render
# |
None
|
None
|
Renders the widget.
<template>
<JqxRadioButton ref="myRadioButton"> Radio Button </JqxRadioButton>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
const myRadioButton = ref(null);
onMounted(() => {
myRadioButton.value.render();
});
</script>
|
|
uncheck
# |
None
|
None
|
Unchecks the radio button.
<template>
<div>
<JqxRadioButton ref="myRadioButton">Radio Button</JqxRadioButton>
<JqxButton @click="check()">Check</JqxButton>
<JqxButton @click="uncheck()">Uncheck</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myRadioButton = ref(null);
function check() {
myRadioButton.value.check();
}
function uncheck() {
myRadioButton.value.uncheck();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
val
# |
value
|
Boolean
|
Sets or gets the value.
<template>
<JqxRadioButton ref="myRadioButton"> Radio Button </JqxRadioButton>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxRadioButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxradiobutton.vue';
const myRadioButton = ref(null);
onMounted(() => {
const value = myRadioButton.value.val();
});
</script>
|