addEventListener
addEventListener: <K extends keyof TextComparisonEventsMap>(
action: K,
listener: TextComparisonEventsMap[K],
) => void
getComparisonVisibility
getComparisonVisibility: () => boolean
getCurrentChangeIndex
getCurrentChangeIndex: () => number
getScrollLock: () => boolean
goToNextChange
goToNextChange: () => number
goToPreviousChange
goToPreviousChange: () => number
jumpToChange
jumpToChange: (changeIndex: number) => number
removeEventListener
removeEventListener: <K extends keyof TextComparisonEventsMap>(
action: K,
listener: TextComparisonEventsMap[K],
) => void
setComparisonSidebarConfig: ( comparisonSidebarConfig: TextComparisonSidebarConfiguration,) => Promise<void> setComparisonVisibility
setComparisonVisibility: (flag: boolean) => void
setCurrentChangeIndex
setCurrentChangeIndex: (changeIndex: number) => void
setScrollLock: (flag: boolean) => void
A mounted text comparison instance.
You can generate an instance for text comparison by using NutrientViewer.loadTextComparison.