@univerjs/sheets-filter
Filtering model, commands, and services for Univer Sheets.
import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter'
univer.registerPlugin(UniverSheetsFilterPlugin, IUniverSheetsFilterConfig)IUniverSheetsFilterConfig
export interface IUniverSheetsFilterConfig {
/**
* Whether to display the filter sync switch in the filter panel.
* This configuration can be used in a collaboration scenario to allow users to choose whether to enable filter synchronization.
* If set to a defaultValue object, the filter sync switch will be displayed and its initial state will be determined by the defaultValue property.
* @default false
*/
enableSyncSwitch?: boolean | { defaultValue: boolean }
}