Viv*_*iya 7 javascript filtering ag-grid
我已经使用 javascript 在 ag-grid 中实现了服务器端模型,我尝试使用setQuickFilter函数来实现全局搜索,但它对我不起作用。有什么办法可以实现这些东西吗?
我尝试使用下面的代码,但它在服务器端模型中不起作用。
在 HTML 文件中:
<input type="text" id="filter-text-box" placeholder="Filter..." oninput="onFilterTextBoxChanged()"/>
Run Code Online (Sandbox Code Playgroud)
在JS文件中:
function onFilterTextBoxChanged() {
gridOptions.api.setQuickFilter(document.getElementById('filter-text-box').value);
}
Run Code Online (Sandbox Code Playgroud)