我在angular2应用程序中使用了ag-grid的企业版。当用户将鼠标悬停在其上时,将显示过滤器菜单。如何固定菜单以便始终显示?这是一个示例列定义:
{
headerName: 'Name', field: 'name', width: 160, lockPinned: true, lockVisible: true,
filter: 'agSetColumnFilter', lockPosition: true, pinned: 'left',
filterParams: { selectAllOnMiniFilter: true, suppressMiniFilter: false},
sortingOrder: ['asc', 'desc'],
menuTabs: ['filterMenuTab'],
colId: 'Name'
},
答案 0 :(得分:1)
需要这行代码:const filepath = 'YOUR_FILE.pdf';
const verifyDownload = async () => new Promise((resolve, reject) => {
fs.watchFile(filepath, (curr, prev) => {
if (fs.existsSync(filepath)) {
fs.unwatchFile(filepath);
resolve(true);
}
});
});
await t.expect(await verifyDownload()).ok("Could not download", { timeout: 30000 });