Univer
Univer Sheet
Features
Find & Replace

Find & Replace

📊 Univer Sheet

Installation

pnpm add @univerjs/find-replace @univerjs/sheets-find-replace

Import

import '@univerjs/find-replace/lib/index.css';
 
import { UniverFindReplacePlugin } from '@univerjs/find-replace';
import { UniverSheetsFindReplacePlugin } from '@univerjs/sheets-find-replace';

Internationalization

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

Register

univer.registerPlugin(UniverFindReplacePlugin);
univer.registerPlugin(UniverSheetsFindReplacePlugin);

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