- Notifications
You must be signed in to change notification settings - Fork217
透视表LAYOUT_COLS_EXPANDED方法无法获取被折叠的单元格内容#3216
Unanswered
yangqi0519400 asked this question inQ&A
-
版本:1.56.2 场景:列头隐藏后,点击展开按钮,触发下面的方法,但是打印的cell不是被隐藏的单元格数据,是兄弟节点的信息。 s2.on(S2Event.LAYOUT_COLS_EXPANDED, (cell) => { 请问一下如何获取被隐藏节点的信息呢(需要更新被隐藏的界节点) |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
@yangqi0519400 您好!以下是关于您问题的自动回复: 您好,关于您在 S2 项目中遇到的「LAYOUT_COLS_EXPANDED 方法无法获取被折叠的单元格内容」问题,以下是专业解答: 问题分析您监听的是: s2.on(S2Event.LAYOUT_COLS_EXPANDED,(cell)=>{console.log('列头展开',cell)}) 但发现 正确获取被折叠节点信息的方法S2 在隐藏/展开列头时,实际隐藏的是一组节点。要拿到被隐藏的所有节点信息,请参考如下方式: 1. 监听 |
BetaWas this translation helpful?Give feedback.
All reactions
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment