显示弹出类型的单元格渲染器 [英] Show popup kind of cell renderer

查看:27
本文介绍了显示弹出类型的单元格渲染器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在单元格聚焦时显示一种弹出式单元格渲染器.假设,如果行高是 50 像素,当特定单元格被聚焦时,我想要一个高度大于 50 像素(例如 80 像素)的自定义单元格渲染器.我开发了一个自定义单元格渲染器,但只有适合单元格高度(50px)的内容可见,其余内容被截断.我尝试设置绝对定位、更高的 z-index 等,但没有任何效果.对于单元格编辑器,我们可以指定 isPopup(){ return true }.单元渲染器也可以有同样的东西吗?

I want to show a popup kind of cell renderer when a cell is focused. For suppose, if the row height is 50px, when a specific cell is focused, I want to have a custom cell renderer that has a height greater than 50px(e.g., 80px). I have developed a custom cell renderer, but only the content which fits within the cell height(50px) is visible and the remaining content is cut off. I tried setting up absolute positioning,higher z-index etc., but nothing worked. For cell editors, we can specify isPopup(){ return true }. Is it possible to have the same thing for cell renderer as well?

推荐答案

我认为创建在单元格外显示的渲染器是不可能的.我知道没有 API 可以做到这一点.也许有人可以想出某种黑客",但仅此而已,不.

I don't think that it is possible to create a renderer that displays outside of the cell. There is no API that I'm aware of to do it. Perhaps someone can come up with some sort of "hack", but just short of that, no.

这篇关于显示弹出类型的单元格渲染器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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