Univer
Univer Sheet
Features
Filter

Filter

📊 Univer Sheet

The filter plugin provides filtering functionality for cells.

Installation

pnpm add @univerjs/sheets-filter @univerjs/sheets-filter-ui

Import

import '@univerjs/sheets-filter-ui/lib/index.css';
 
import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';
import { UniverSheetsFilterUIPlugin } from '@univerjs/sheets-filter-ui';

Internationalization

import { LocaleType, Tools } from '@univerjs/core';
import SheetsFilterUIEnUS from '@univerjs/sheets-filter-ui/locale/en-US';
 
const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
      SheetsFilterUIEnUS
    ),
  },
});

Register

univer.registerPlugin(UniverSheetsFilterPlugin);
univer.registerPlugin(UniverSheetsFilterUIPlugin);

API

Plugin API

Facade API


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.