筛选
表格筛选插件,可以创建筛选,或筛选视图。 通过筛选可以仅显示满足指定条件的数据,并隐藏不希望显示的数据。关闭筛选后,仍可以查看所有数据。
构造函数
用法
const editor = new window.shimo.sdk.sheet.Editor() editor.render({ content: [表格内容], container: [表格渲染容器] }) new window.shimo.sdk.sheet.plugins.FilterViewport({ editor: editor, // 如果要启用筛选视图,请将这个参数设为true。若不传或设为false则只能使用普通筛选,无法使用筛选视图 useAllFeatures: true, })