gpt4 book ai didi

javascript - 从 AG-Grid 中移除焦点

转载 作者:行者123 更新时间:2023-11-29 20:48:22 32 4
gpt4 key购买 nike

我在网站上使用 AG Grid。当用户单击一个单元格时,它会获得焦点并显示蓝色轮廓。

当用户单击网站上的某些其他元素时,我需要移除此焦点,但我不知道该怎么做。是否有为此设置的方法或属性?

最佳答案

将以下代码片段添加到您的 CSS 中

.ag-cell-focus, .ag-cell {
border: none !important;
}

示例 - https://next.plnkr.co/edit/xO5N5u84U8n4HgK5

关于javascript - 从 AG-Grid 中移除焦点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53276668/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com