如何复制存在于ag-grid中的值 [英] how to copy the values present in ag-grid

查看:554
本文介绍了如何复制存在于ag-grid中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ag-grid绑定列表中的值,是否可以将值/数据复制到所选单元格中.我试图使用ctrl + c复制值,但是它不能正常工作吗?

I am using ag-grid to bind values from a list, Is it possible to copy the value/data in the selected cell. I have tried to copy the value using ctrl+c but its not working is there any other way?

请帮助我!

推荐答案

您可以使用下面的CSS来做到这一点:

You can do this using CSS below:

.ag-font-style {
  user-select: initial;
  -moz-user-select: text;
  -ms-user-select: text;
  -webkit-user-select: text;
}

这可以在IE,Chrome,Mozilla等任何浏览器中使用,并且可能是Safari.

This should work in any of the browsers viz IE, Chrome, Mozilla and may be Safari.

这篇关于如何复制存在于ag-grid中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆