| Name | Type | Default |
|---|---|---|
| allowValueChangeOnClick | Boolean | true |
|
Sets or gets whether the jqxKnob's value can be changed on click. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :allowValueChangeOnClick="false" :allowValueChangeOnDrag="false"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| allowValueChangeOnDrag | Boolean | true |
|
Sets or gets whether the jqxKnob's value can be changed by dragging the pointer. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :allowValueChangeOnClick="false" :allowValueChangeOnDrag="true"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| allowValueChangeOnMouseWheel | Boolean | true |
|
Sets or gets whether the jqxKnob's value can be changed on mouse wheel. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :allowValueChangeOnMouseWheel="false"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| changing | Function | null |
|
Sets or gets a function called when the user drags the pointer. The function is called before the pointer is moved and the passed arguments are 2 - oldValue and newValue. If the function returns false, the value will not be changed. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :changing="changing"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
},
methods: {
changing: function (oldValue, newValue) {
alert('changing');
}
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| dragEndAngle | Number | 0 |
|
Sets or gets the Knob's angle where dragging the pointer will end. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :dragEndAngle="420"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| dragStartAngle | Number | 360 |
|
Sets or gets the Knob's degrees where dragging the pointer can start. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :dragStartAngle="120"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| disabled | Boolean | false |
|
Sets or gets whether the Knob is disabled. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :disabled="true"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| dial | Object | null |
|
Sets or gets the Knob's dial.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :dial="dial"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
dial: {
innerRadius: '0%', /*specifies the inner Radius of the dial*/
outerRadius: '65%', /*specifies the outer Radius of the dial*/
style: {
stroke: '#ff0000', strokeWidth: 1, fill: { color: '#66707e', gradientType: "linear", gradientStops: [[0, 1], [50, 0.4], [100, 1]] }
}
},
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| endAngle | Number | 360 |
|
Sets or gets the Knob's degrees offset for the 360 location. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| height | Number | String | 400 |
|
Sets or gets the Knob's height. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :height="400"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| labels | Object | null |
|
Sets or gets the Knob's labels.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| marks | Object | null |
|
Sets or gets the Knob's marks.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| min | Number | 0 |
|
Sets or gets the Knob's min property. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| max | Number | 100 |
|
Sets or gets the Knob's max property. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| progressBar | Object | null |
|
Sets or gets the Knob's progressBar property.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| pointer | Array | Object | null |
|
Sets or gets the Knob's pointer property.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| pointerGrabAction | String | "normal" |
|
Sets or gets the Knob's pointerGrabAction property("normal", "progressBar", "pointer"). <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :pointerGrabAction="'pointer'"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| rotation | String | "clockwise" |
|
Sets or gets the Knob's rotation("clockwise" or "counterclockwise"). <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'counterclockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| startAngle | Number | 0 |
|
Sets or gets the Knob's degrees offset for the 0 location. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| spinner | Object | null |
|
Sets or gets Knob's spinner.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :spinner="spinner"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
spinner: {
style: { fill: { color: '#a2da39', gradientType: "linear", gradientStops: [[0, 1], [50, 0.9], [100, 1]] }, stroke: '#00a4e1' },
innerRadius: '45%', /*specifies the inner Radius of the dial*/
outerRadius: '60%', /*specifies the outer Radius of the dial*/
marks: {
colorRemaining: '#fff',
colorProgress: '#fff',
type: 'line',
offset: '46%',
thickness: 2,
size: '14%',
majorSize: '14%',
majorInterval: 10,
minorInterval: 10
},
},
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| styles | Object | null |
|
Sets or gets the Knob's background style.
<template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| step | Number | String | 1 |
|
Sets or gets the Knob's step property. Specifies the increase/decrease step. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :step="10"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| snapToStep | Boolean | true |
|
Sets or gets the Knob's snapToStep property. Specifies whether setting the knob value will snap to the closest step true/false. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="false"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| value | Number | Array | 0 |
|
Sets or gets the Knob's value. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| width | Number | String | 400 |
|
Sets or gets the Knob's width. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" :width="500"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
Events |
||
| change | Event | |
|
This event is triggered when the value is changed. Code examples
Bind to the
<template>
<JqxKnob ref="myKnob" @change="onChange($event)"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
},
methods: {
onChange: function (event) {
alert('do something...');
}
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
Methods |
||
| Name | Arguments | Return Type |
| destroy | None | None |
|
Destroys the widget. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels"
/>
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.styles = this.styles;
this.$refs.myKnob.destroy();
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||
| val | value | Number |
|
Sets or gets the value. <template>
<JqxKnob ref="myKnob"
:value="60" :min="0" :max="100" :startAngle="120" :endAngle="420" :snapToStep="true"
:rotation="'clockwise'" :pointer="pointer" :progressBar="progressBar"
:marks="marks" :labels="labels" />
</template>
<script>
import JqxKnob from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxknob.vue';
export default {
components: {
JqxKnob
},
data: function () {
return {
styles: {
stroke: '#dfe3e9', strokeWidth: 3,
fill: {
color: '#fefefe', gradientType: "linear",
gradientStops: [[0, 1], [50, 0.9], [100, 1]]
}
},
marks: {
colorRemaining: { color: 'grey', border: 'grey' },
colorProgress: { color: '#00a4e1', border: '#00a4e1' },
type: 'line',
offset: '71%',
thickness: 3,
size: '6%',
majorSize: '9%',
majorInterval: 10,
minorInterval: 2
},
labels: {
offset: '88%',
step: 10,
visible: true
},
progressBar: {
style: { fill: '#00a4e1', stroke: 'grey' },
size: '9%',
offset: '60%',
background: { fill: 'grey', stroke: 'grey' }
},
pointer: {
type: 'circle',
style: { fill: { color: '#a4a3a3', gradientType: "linear", gradientStops: [[0, 0.5], [50, 0.6], [100, 1]] }, stroke: '#333' },
size: '10%',
offset: '50%'
}
}
},
mounted: function () {
this.$refs.myKnob.val(100);
}
}
</script>
<style>
text.jqx-knob-label {
font-size: 20px;
}
</style>
|
||