我尝试了AgGrid公开的以下方法
processCellFromClipboard = function(params) {
console.log(params.value);
return params.value;}
processCellForClipboard = function(params) {
console.log(params.data);
return params.value;
};
FromClpboard方法正在提供对象,但我无法在processCellFromCliboard中查看相同的视图。 还有什么其他方法可以实现自定义对象的复制粘贴。 任何想法或样品都会有所帮助吗?
当前正在评估AgGrid企业版的复制粘贴可行性 自定义对象。
答案 0 :(得分:0)
The object copy paste was possiable through adding below changes in implemented code as below :
processCellFromClipboard = function(params) {
return JSON.parse(params.value);
};
/**Method which copies for clipboard
* Method takes params which is given from agGrid
* Have to stringy the object has it will take only string
processCellForClipboard = function(params) {
console.log(params);
return JSON.stringify(params.value);
};