@twip/web
    Preparing search index...

    Interface SessionOptions

    Options for a new session.

    interface SessionOptions {
        applicationFieldTypes?: string[];
        author?: Author;
        dictionaries?: Dictionary[];
        fieldLabels?: Record<string, string>;
        fonts?: FontLibrary;
        language?: string;
        mac?: boolean;
        mode?: "editing" | "design";
        readOnly?: boolean;
        subTemplateRules?: ReferenceRule[];
        trackChanges?: boolean;
    }

    Hierarchy (View Summary)

    Index
    applicationFieldTypes?: string[]

    The application's own field types (Commands.setApplicationFieldTypes), in place from each open.

    author?: Author

    Who makes changes.

    dictionaries?: Dictionary[]

    Spelling dictionaries.

    fieldLabels?: Record<string, string>

    What design mode shows for each field code (Commands.setFieldLabels), in place from each open's first layout. The commands still change them for the open document.

    fonts?: FontLibrary

    The fonts to draw with: share one per page, FontLibrary.default (the default).

    language?: string

    The default language, BCP 47. Default 'en-US'.

    mac?: boolean

    The keys follow macOS: ⌘ with the arrows moves to the line's or the document's edge, ⌥ with them by word or paragraph, and ⌥ with Backspace or Delete deletes a word. Default false.

    mode?: "editing" | "design"

    Start in editing (the default) or design mode.

    readOnly?: boolean

    Start read only. Default false.

    subTemplateRules?: ReferenceRule[]

    Which fields are sub-template references (Commands.setSubTemplateRules), in place from each open.

    trackChanges?: boolean

    Turns tracking on after open, unless the document locks it.