Methods

destroy()

To destroy the digital gauge

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.destroy();

    exportImage(fileName, fileType)

    To export Digital Gauge as Image

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.exportImage();

    getPosition(itemIndex)

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

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.getPosition();

    getValue(itemIndex)

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

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.getValue();

    refresh()

    Refresh the digital gauge widget

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.refresh();

    setPosition(itemIndex, value)

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

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.setPosition();

    setValue(itemIndex, value)

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

  • html
  • <ej-digital-gauge id="DigitalGauge">
    </ej-digital-gauge>
    
    var gauge = $("#DigitalGauge").data("ejDigitalGauge");
    gauge.setValue();

    Events

    init

    Triggers when the gauge is initialized.

  • html
  • <ej-digital-gauge id="DigitalGauge" init="InIt">
    </ej-digital-gauge>
    
    <script type="text/javascript">
        function InIt(args) {
            // Do Something
        }
    </script>

    itemRendering

    Triggers when the gauge item rendering.

  • html
  • <ej-digital-gauge id="DigitalGauge" item-rendering="ItemRendering">
    </ej-digital-gauge>
    
    <script type="text/javascript">
        function ItemRendering(args) {
            // Do Something
        }
    </script>

    load

    Triggers when the gauge is start to load.

  • html
  • <ej-digital-gauge id="DigitalGauge" load="Load">
    </ej-digital-gauge>
    
    <script type="text/javascript">
        function Load(args) {
            // Do Something
        }
    </script>

    renderComplete

    Triggers when the gauge render is completed.

  • html
  • <ej-digital-gauge id="DigitalGauge" render-complete="RenderComplete">
    </ej-digital-gauge>
    
    <script type="text/javascript">
        function RenderComplete(args) {
            // Do Something
        }
    </script>