【发布时间】:2019-03-05 10:50:31
【问题描述】:
我在我的 Angular 6 应用程序中使用 Enterprise Ag-Grid 版本。我有一个Set Filter。我在过滤器中添加了“应用”按钮:
apply:设置为 true 以在过滤器中包含“应用”按钮,并且 不会随着选择的变化而自动过滤。
问题是如何在按下按钮后隐藏迷你过滤器菜单?我在官方网站上没有找到任何关于这种可能性的文档。但是我在内部库src文件中找到了注释,在IComponent.ts中指定:
/* A hook to perform any necessary operation just after the gui for this component has been renderer
in the screen.
If the filter popup is closed and reopened, this method is called each time the filter is shown.
This is useful for any
logic that requires attachment before executing, such as putting focus on a particular DOM
element. The params has one callback method 'hidePopup', which you can call at any later
point to hide the popup - good if you have an 'Apply' button and you want to hide the popup
after it is pressed. */
afterGuiAttached?(params?: IAfterGuiAttachedParams): void;
目前我不明白如何设置afterGuiAttached函数来实现上述目标。
谁能帮帮我?
提前致谢!
【问题讨论】:
-
我以前用过ag-grid,我知道企业版是24小时支持的,你怎么不问呢?
-
@Mr. Idk .. StackOverflow“离我更近”。我也希望他们在这里查看带有“Ag-Grid”标签的问题..
-
我认为他们没有 :( 我希望我能帮助你更多,但我没有使用较新的库,祝你好运
标签: ag-grid