Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 ext js 的新手,我使用 Ext js 4.1 创建treeGrid面板,我们也为 ech 列使用不同的渲染函数。那么如何将 CSS 应用到 Selected Row 中Treepanel呢?
treeGrid
Treepanel
选定的原始 css 类是x-grid-row-selected,您可以覆盖它:
x-grid-row-selected
.x-grid-row-selected { background-color: red; }
在您的渲染器中,您可以使用元数据应用 css 类:
renderer: function( aValue, aMetaData, aRecord ) { aMetaData.tdCls = 'some-of-your-own'; }