SpreadJS designer

Posted by: storm.binary on 21 January 2020, 8:36 am EST

  • Posted 21 January 2020, 8:36 am EST

    Hello

    Would it be possible to programmatically open, save or export files into the designer.

    Any example code?

    Thank you.

  • Posted 22 January 2020, 4:34 am EST

    Hi,

    Yes, you may update the designer according to your requirements. To make changes programmatically, you may get the actual spread workbook instance in the handler for designer.loader.ready event. A handler for designer.loader.ready event is already added at the end of src/index/index.js file. You may update the same as follows:

    designer.loader.ready(function () {
            //To Fix the designer resize performance issues.
            $(window).unbind("resize.gcuiribbon");
            $("#verticalSplitter").show();
            updateLayout();
    
            // get spread workbook instance
            var spread = designer.wrapper.spread;
            // perform required operations on the spread object
        });
    

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels