How to use the ngx-easy-table.API.rowContextMenuClicked function in ngx-easy-table

To help you get started, we’ve selected a few ngx-easy-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ssuperczynski / ngx-easy-table / src / app / demo / context-menu / context-menu.component.ts View on Github external
copyCell(object: any): void {
    const selBox = document.createElement('textarea');
    selBox.style.position = 'fixed';
    selBox.style.left = '0';
    selBox.style.top = '0';
    selBox.style.opacity = '0';
    selBox.value = JSON.stringify(object.row);
    document.body.appendChild(selBox);
    selBox.focus();
    selBox.select();
    document.execCommand('copy');
    document.body.removeChild(selBox);
    this.table.apiEvent({ type: API.rowContextMenuClicked });
  }