Methods
destroy()
To destroy
the digital gauge
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.destroy();
exportImage(fileName, fileType)
To export
Digital Gauge as Image
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.exportImage();
getPosition(itemIndex)
Gets the location of an item that is displayed on the gauge.
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.getPosition();
getValue(itemIndex)
ClientSideMethod getValue
Gets the value of an item that is displayed on the gauge
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.getValue();
refresh()
Refresh
the digital gauge widget
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.refresh();
setPosition(itemIndex, value)
ClientSideMethod Set Position
Sets the location of an item to be displayed in the gauge
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.setPosition();
setValue(itemIndex, value)
ClientSideMethod SetValue
Sets the value of an item to be displayed in the gauge.
@(Html.EJ().DigitalGauge("Gauge1"))
var gauge = $("#Gauge1").data("ejDigitalGauge");
gauge.setValue();
Events
Init
Triggers when the gauge is initialized.
@(Html.EJ().DigitalGauge("Gauge1")
.Init("init")
)
function init(){
// Do Something
}
ItemRendering
Triggers when the gauge item rendering
.
@(Html.EJ().DigitalGauge("Gauge1")
.ItemRendering("itemRendering")
)
function itemRendering(){
// Do Something
}
Load
Triggers when the gauge is start to load
.
@(Html.EJ().DigitalGauge("Gauge1")
.Load("load")
)
function load(){
// Do Something
}
RenderComplete
Triggers when the gauge render is completed.
@(Html.EJ().DigitalGauge("Gauge1")
.RenderComplete("renderComplete")
)
function renderComplete(){
// Do Something
}
Click
Click
event triggers on clicking the gauges.
@(Html.EJ().DigitalGauge("Gauge1")
.Click("click")
)
function click(){
// Do Something
}
DoubleClick
The DoubleClick
event is triggered when double clicking the gauges.
@(Html.EJ().DigitalGauge("Gauge1")
.DoubleClick("doubleClick")
)
function doubleClick(){
// Do Something
}
RightClick
The RightClick
event is triggered when right clicking the gauges.
@(Html.EJ().DigitalGauge("Gauge1")
.RightClick("rightClick")
)
function rightClick(){
// Do Something
}