This section describes the Linear Gauge component’s event that gets triggered when corresponding operations are performed.
When the pointer animation is completed, the animationComplete
event will be triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :animationComplete='animationComplete'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer value=10></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
animationComplete: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
Before the annotation is rendered in the Linear Gauge, the annotationRender
event will be triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :annotationRender='annotationRender'>
<e-annotations>
<e-annotation :content='contentTemplate' :zIndex='zindex' :axisValue='axisValue'>
</e-annotation>
</e-annotations>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer value=10></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin, Annotations } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
data:function(){
return{
zindex: 1,
contentTemplate : '10',
axisValue: 0
}
},
methods: {
annotationRender: function (event) {
}
},
provide: {
lineargauge: [Annotations]
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
Before each axis label is rendered in the Linear Gauge, the axisLabelRender
event is fired. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :axisLabelRender='axisLabelRender'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
axisLabelRender: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
The beforePrint
event is fired before the print begins. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<button v-on:click="print">Print</button>
<ejs-lineargauge id="container" ref='gauge' :allowPrint='allowPrint' :beforePrint='beforePrint'>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin, Print } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
data () {
return {
allowPrint: true
}
},
methods: {
beforePrint: function (event) {
},
print: function (event) {
this.$refs.gauge.ej2Instances.print();
}
},
provide: {
lineargauge: [Print]
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
The dragEnd
event will be fired before the pointer drag is completed. To know more about the argument of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :dragEnd='dragEnd'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer enableDrag=true></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
dragEnd: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
The dragMove
event will be fired when the pointer is dragged. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :dragMove='dragMove'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer enableDrag=true></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
dragMove: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
When the pointer drag begins, the dragStart
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :dragStart='dragStart'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer enableDrag=true></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
dragStart: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
When mouse is pressed down on the gauge, the gaugeMouseDown
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :gaugeMouseDown='gaugeMouseDown'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
gaugeMouseDown: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
When mouse pointer moves over the gauge, the gaugemouseleave
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :gaugeMouseLeave='gaugeMouseLeave'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
gaugeMouseLeave: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
When mouse pointer leaves the gauge, the gaugeMouseMove
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :gaugeMouseMove='gaugeMouseMove'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
gaugeMouseMove: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
When the mouse pointer is released over the Linear Gauge, the gaugeMouseUp
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :gaugeMouseUp='gaugeMouseUp'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
gaugeMouseUp: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
Before the Linear Gauge is loaded, the load
event is fired. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :load='load'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
load: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
After the Linear Gauge has been loaded, the loaded
event will be triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :loaded='loaded'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
loaded: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
After the window resizing, the resized
event is triggered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :resized='resized'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
resized: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
The tooltipRender
event is fired before the tooltip is rendered. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :tooltip='tooltip' :tooltipRender='tooltipRender'>
<e-axes>
<e-axis>
<e-pointers>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin, GaugeTooltip } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
data:function(){
return {
tooltip: {
enable: true,
}
}
},
methods: {
tooltipRender: function (event) {
}
},
provide: {
lineargauge: [GaugeTooltip]
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
The valueChange
event is triggered when the pointer is dragged from one value to another. To know more about the arguments of this event, refer here.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :valueChange='valueChange'>
<e-axes>
<e-axis>
<e-pointers enableDrag=true>
<e-pointer></e-pointer>
</e-pointers>
</e-axis>
</e-axes>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
methods: {
valueChange: function (event) {
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>