interface BookmarkType {
    color: () => Promise<string>;
    destination: (doc?: DocType) => Promise<null | DestType>;
    destroy: () => Promise<void>;
    doc: null | DocType;
    fontStyle: () => Promise<number>;
    options: Options;
    title: () => Promise<string>;
}

Implemented by

Properties

color: () => Promise<string>

获取书签的颜色。

Type declaration

    • (): Promise<string>
    • Returns Promise<string>

      返回书签的颜色。

destination: (doc?: DocType) => Promise<null | DestType>

获取书签的目标位置。

Type declaration

    • (doc?: DocType): Promise<null | DestType>
    • Parameters

      • Optionaldoc: DocType

        文档对象,表示要操作的文档。

      Returns Promise<null | DestType>

      返回目标对象。

destroy: () => Promise<void>

销毁当前对象。

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

doc: null | DocType

相关的文档对象。

fontStyle: () => Promise<number>

获取书签的字体样式。

Type declaration

options: Options
title: () => Promise<string>

获取书签的标题。

Type declaration

    • (): Promise<string>
    • Returns Promise<string>

      返回书签的标题。