在官方文档 panel 的setTitle 方法下边
有一条评论
adrianmirjan
If calling this method for hidden Window, then collapse button in the header dissapears. So you should call show() first then setTitle().
如果你的 panel 是 手风琴 Accordion 布局,那么在 该panel 看不见的时候 包括隐藏 和 渲染之前 ,使用setTitle 都会使 默认的 的展开 和 关闭 按钮消失
有一条评论
adrianmirjan
If calling this method for hidden Window, then collapse button in the header dissapears. So you should call show() first then setTitle().
如果你的 panel 是 手风琴 Accordion 布局,那么在 该panel 看不见的时候 包括隐藏 和 渲染之前 ,使用setTitle 都会使 默认的 的展开 和 关闭 按钮消失
本文介绍了一个关于在Accordion布局中为不可见Panel设置标题时可能导致的展开和关闭按钮消失的问题及解决方案。当面板隐藏时直接调用setTitle方法会导致面板头部的折叠按钮消失,因此正确的做法应当先显示Panel再设置其标题。
355

被折叠的 条评论
为什么被折叠?



