简体   繁体   English

如何在Ext Js中应用菜单过滤器时删除网格列标题高亮显示(粗体+下划线)?

[英]How to remove grid column header highlight (bold + underline) when applying menu filter in Ext Js?

I have been using Ext Js' grid panel with menus applied to the column headers (default). 我一直在使用Ext Js的网格面板,其中菜单应用于列标题(默认)。

Whenever I apply a filter to the column through the menu, the column header gets highlighted with it's title getting bold and underlined. 每当我通过菜单将过滤器应用于列时,列标题会突出显示,其标题将变为粗体和下划线。

I have tried to find a way to remove it, but could not find any event or method to solve this problem. 我试图找到一种方法来删除它,但找不到任何事件或方法来解决这个问题。 I want my application to remove all highlights before applying a new one, so that it becomes impossible to have 2 columns with highlights on their title simultaneously. 我希望我的应用程序在应用新的应用程序之前删除所有高亮显示,这样就不可能同时在其标题上有2个带有高亮显示的列。

Is there any way to implement this? 有没有办法实现这个? Or simply disable the highlights, so that no column header titles get highlighted when filtered... 或者只是禁用高亮显示,以便在过滤时不会突出显示列标题标题...

Obs: I am applying a store.clearFilter() whenever the column filter is changed, and the header is still not getting back to normal. Obs:每当更改列过滤器时,我都会应用store.clearFilter(),并且标题仍然没有恢复正常。

Obs2: Could not post images to illustrate due to stack's reputation restrictions (second time posting). Obs2:由于堆栈的声誉限制(第二次发布),无法发布图片以进行说明。

您可以简单地覆盖filterCls以删除突出显示:

Ext.override(Ext.grid.filters.Filters, {filterCls: Ext.baseCSSPrefix});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM