Paste Button

Posted by: hoang.nguyen on 20 September 2018, 1:53 pm EST

    • Post Options:
    • Link

    Posted 20 September 2018, 1:53 pm EST

    By turning on [autoClipboard]=“true”, I can copy and paste data with Crtl + C or Ctrl + V

    I also need to create a ‘Paste’ button so user can paste by clicking this button.

    I have try this but the ‘text’ in clipboard is always an empty string. What am I missing here? Thank you very much.

    pasteData() {

    wjCore.Clipboard.paste((data) => {

    console.log(‘data’, data);

    this.flex.autoClipboard = false;

    this.flex.setClipString(data);

    this.flex.autoClipboard = true;

    });

    }

  • Posted 21 September 2018, 5:43 am EST

    Hi,

    This thread seems to be duplicate.

    Please refer to the following thread for the answer: https://www.grapecity.com/en/forums/wijmo/paste-button

    ~Sharad

Need extra support?

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

Learn More

Forum Channels