| Name | Type | Default |
|
autoSwitchToMinutes
# |
Boolean
|
false
|
Sets or gets whether after selecting hours, the element will automatically switch to minute selection.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :autoSwitchToMinutes="true"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Enables or disables the jqxTimePicker.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :disabled="true"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
Sets or gets whether the footer is shown.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
Sets or gets the footer template. The value of this property can be the id of an HTMLTemplateElement or the HTMLTemplateElement itself. If set to null, a default, empty, template is applied.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
format
# |
String
|
12-hour
|
Sets or gets the whether hour selection format is using a 12-hour or 24-hour clock convention.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :format="'24-hour'"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
height
# |
Number | String
|
400
|
Sets or gets the height.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
minuteInterval
# |
Number
|
1
|
Sets or gets the step when selecting minutes.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :minuteInterval="15"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
name
# |
String
|
|
The name of the control.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
readonly
# |
Boolean
|
false
|
Disables user interaction with the element.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :readonly="true"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
selection
# |
String
|
hour
|
Sets or gets whether hour or minute selection is currently enabled.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :selection="'minute'"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
theme
# |
String
|
|
Determines the theme. Theme defines the look of the element.
Sets the widget's theme.
jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file.
In order to set a theme, you need to do the following:
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
unfocusable
# |
Boolean
|
false
|
If is set to true, the element cannot be focused.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :unfocusable="true"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
value
# |
Date
|
new Date()
|
Sets or gets the value.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :value="'new Date()'"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
view
# |
String
|
portrait
|
Sets or gets whether the element is in landscape or portrait orientation.
Possible Values:
'landscape'
'portrait'
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400" :view="'landscape'"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
width
# |
Number | String
|
400
|
Sets or gets the width.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the change event of jqxTimePicker.
<template>
<JqxTimePicker ref="myTimePicker" @change="onChange($event)"
:width="400" :height="400"
/>
</template>
<script setup>
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
setHours
# |
hours
|
None
|
Sets the hours.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
const myTimePicker = ref(null);
onMounted(() => {
myTimePicker.value.setHours();
});
</script>
|
|
setMinutes
# |
minutes
|
None
|
Sets the minutes.
<template>
<JqxTimePicker ref="myTimePicker"
:width="400" :height="400"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxTimePicker from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtimepicker.vue';
const myTimePicker = ref(null);
onMounted(() => {
myTimePicker.value.setMinutes();
});
</script>
|