Skip to content

Latest commit

 

History

History

sheets-hyper-link

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@univerjs/sheets-hyper-link

npm version license downloads

@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-link

Usage

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/facade when using this package through Univer Facade APIs.

Resources