Menu

Invoke export function from code

Andrew_X
2012-07-19
2012-07-19
  • Andrew_X

    Andrew_X - 2012-07-19

    Hello!
    I'm wondering if there any possibility to invoke export function programmaticaly (from code) without user clicking on the export button? It is possible with JavaScript Highcharts lib, but how can it be done by GWT wrapper?

     
  • Andrew_X

    Andrew_X - 2012-07-19

    I found solution wit using JSNI:

    exportChart(chart.getNativeChart());

    private static native JavaScriptObject exportChart(JavaScriptObject chart) /*-{

    return chart.exportChart();
    

    }-*/;

     

    Last edit: Andrew_X 2012-07-19

Log in to post a comment.