@univerjs/sheets-hyper-link
v1.6.0
Published
Hyperlink model and commands for Univer Sheets.
Readme
@univerjs/sheets-hyper-link
@univerjs/sheets-hyper-link adds the core hyperlink model, commands, and sheet-specific services for Univer Sheets.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs/sheets-hyper-link | UniverSheetsHyperLink | No | Yes | Yes | No |
Installation
pnpm add @univerjs/sheets-hyper-link
# or
npm install @univerjs/sheets-hyper-linkUsage
Start with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import { LocaleType, mergeLocales, Univer } from '@univerjs/core';
import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';
import EnUS from '@univerjs/sheets-hyper-link/locale/en-US';
const univer = new Univer({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: mergeLocales(EnUS),
},
});
univer.registerPlugin(UniverSheetsHyperLinkPlugin);Integration Notes
Use this package with @univerjs/sheets-hyper-link-ui when users need hyperlink editing UI.
- Import
@univerjs/sheets-hyper-link/facadewhen using this package through Univer Facade APIs.
