UNPKG

@sheetxl/models

Version:

Models - A Headless javascript spreadsheet library.

42 lines 1.31 kB
import { SerializableProperties } from "../primitives"; export interface HyperlinkValues { /** * This can be a url or a cell address. * Note - sheet address need to start with a # */ address: string; /** * A text that can show addition information about the link that will be * displayed as a tooltip. * @remark * Excel has an undocumented tooltip length limit of 255 characters. */ tooltip?: string; /** * Specifies whether to add this URI to the history when navigating to it. * @defaultValue true */ history?: boolean; /** * Specified the target frame when opening this Hyperlink. * @defaultValue newWindow * */ tgtFrame?: string; } export interface IHyperlink extends Readonly<HyperlinkValues> { isEmpty(): boolean; toJSON(): SerializableProperties<HyperlinkValues>; } export declare class Hyperlink implements IHyperlink { protected _overrides: Partial<HyperlinkValues>; protected _isEmpty: boolean; constructor(overrides: Partial<HyperlinkValues>); get address(): string; get tooltip(): string; get history(): boolean; get tgtFrame(): string; isEmpty(): boolean; toJSON(): SerializableProperties<HyperlinkValues>; } //# sourceMappingURL=IHyperlink.d.ts.map