Migrating SpreadJs from Version 9 to 11

Posted by: anoop.vijayan on 25 May 2018, 1:33 pm EST

    • Post Options:
    • Link

    Posted 25 May 2018, 1:33 pm EST

    We are trying to upgrade our spreadjs 9 implementation with the latest version 11.

    Can someone explain me if there are some alternative or workaround to achieve the below code.

    GcSpread.Sheets.FocusHelper.setActiveElement(self.sheet);

    GcSpread.Sheets.Sheet.prototype._clearClipboard();

    GcSpread.Sheets.Sheet.prototype._doPaste = (){}

    GcSpread.Sheets.Sheet.prototype._getClipboardHelper = (){}

  • Posted 28 May 2018, 7:07 am EST

    Hello,

    All these methods are internal methods of SpreadJS. Currently in v11, all the internal API have been minified.

    We would like to understand your use case in detail. Why do you need call these internal methods?

    Thanks,

    Deepak Sharma

  • Posted 29 May 2018, 1:07 pm EST

    Hi Deepak,

    We were overriding the paste method as we would like the behavior (eg: paste after double clicking the cell, paste bu the undo key …etc ). We also have some logic to modify (like trimming based on some patterns) the value which get pasted.

    We are using a shared clipboard by overriding sheet._clipboardHelper.

    -Anoop

  • Posted 31 May 2018, 6:34 am EST

    Hi Anoop,

    These are internal methods and we never suggest our customers to use internal methods in their applications. Since these methods are not available with SpreadJS v11.0,.

    If you could provide use your use case and code implementation for all the above mentioned

    methods we can try to achieve the same with public API.

    Thanks,

    Deepak Sharma

Need extra support?

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

Learn More

Forum Channels