Methods

destroy()

To destroy the digital gauge

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.destroy();
    };

    exportImage(fileName, fileType)

    To export Digital Gauge as Image

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.exportImage();
    };

    getPosition(itemIndex)

    Gets the location of an item that is displayed on the gauge.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.getPosition();
    };

    getValue(itemIndex)

    ClientSideMethod getValue Gets the value of an item that is displayed on the gauge

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.getValue();
    };

    refresh()

    Refresh the digital gauge widget

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.refresh();
    };

    setPosition(itemIndex, value)

    ClientSideMethod Set Position Sets the location of an item to be displayed in the gauge

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.setPosition();
    };

    setValue(itemIndex, value)

    ClientSideMethod SetValue Sets the value of an item to be displayed in the gauge.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default"></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function DigitalGaugeMethod(){
        var digitalObj = $("#default").data("ejDigitalGauge");
        digitalObj.setValue();
    };

    Events

    init

    Triggers when the gauge is initialized.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default" init = {Init}></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function Init(){
        // Do Something
    };

    itemRendering

    Triggers when the gauge item rendering.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default" itemRendering = {ItemRendering}></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function ItemRendering(){
        // Do Something
    };

    load

    Triggers when the gauge is start to load.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default" load = {Load}></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function Load(){
        // Do Something
    };

    renderComplete

    Triggers when the gauge render is completed.

  • html
  • <div id="digital"></div>
  • javascript
  • ReactDOM.render(
        <EJ.DigitalGauge id="default" renderComplete = {RenderComplete}></EJ.DigitalGauge>,
    	document.getElementById('digital')
    );
    
    function RenderComplete(){
        // Do Something
    };