Univer
Univer Sheet
Features
Hyperlink

HyperLink

📊 Univer Sheet📝 Univer Doc
  1. The hyperlink feature allows jumping to worksheets and cells, supporting adding, updating, parsing, and removing links.
  2. Supports inserting hyperlinks within rich text.
  3. Hyperlinks support sub-sheets, ranges/cells, defined names, and standard links (http, mailto, etc.).

Installation

pnpm add @univerjs/sheets-hyper-link @univerjs/sheets-hyper-link-ui

Import

import '@univerjs/sheets-hyper-link-ui/lib/index.css';
 
import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';
import { UniverSheetsHyperLinkUIPlugin } from '@univerjs/sheets-hyper-link-ui';

Internationalization

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

Register

univer.registerPlugin(UniverSheetsHyperLinkPlugin);
univer.registerPlugin(UniverSheetsHyperLinkUIPlugin);

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