Cut/copy indicator for manual context menu

Posted by: prathamesh.mhatre on 24 July 2020, 5:15 am EST

  • Posted 24 July 2020, 5:15 am EST

    I want to implement a indicator for cut/copy operation on manual context menu.

    The indicator for cut/copy command appear when default context menu is implemented which is not case for manual context menu.

    Though cutCopyIndicatorVisible is always true,still I am not able to get cut/copy indicator.

  • Posted 27 July 2020, 5:49 am EST

    Hi,

    To display the cut/copy indicator, you may use the inbuild cut/copy/paste commands. Please refer to the following code snippet and the sample demonstrating the same:

     var sheet = spread.getActiveSheet();
      var cm = spread.commandManager();
      cm.execute({
        cmd: "cut",
        sheetName: sheet.name()
      });
    

    https://codesandbox.io/s/spread-js-starter-2tbn5?file=/src/index.js

    Regards

Need extra support?

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

Learn More

Forum Channels