ject, contextMenuFormatters.baseCopyAllFormatter ); } } try { copyString(buffer); } catch (error) {} } /** * Copies the value of a single item. * * @param {object} object data object for specific node * @param {object} selection object representing the current selection */ copyValue(object, selection) { let buffer = ""; if (selection.toString() !== "") { buffer = selection.toString(); } else { const { customFormatters } = this.props; buffer = contextMenuFormatters.baseCopyFormatter(object); if (customFormatters?.copyFormatter) { buffer = customFormatters.copyFormatter( object, contextMenuFormatters.baseCopyFormatter ); } } try { copyString(buffer); } catch (error) {} } } function getSummaryContent(el) { return { name: el.querySelector(".tabpanel-summary-label").textContent, value: el.querySelector(".tabpanel-summary-value").textContent, }; } module.exports = HeadersPanelContextMenu; PK