Nutrient Web SDK

ReferenceTextComparisonSidebarConfiguration

Interface TextComparisonSidebarConfiguration

Configuration options for the text comparison sidebar.

Interface

Example

const sidebarConfig = {
diffColors: {
insertionColor: new NutrientViewer.Color({ r: 0, g: 255, b: 0 }),
deletionColor: new NutrientViewer.Color({ r: 255, g: 0, b: 0 })
},
openByDefault: true
};

NutrientViewer.loadTextComparison({
// ... other configuration
comparisonSidebarConfig: sidebarConfig
});

Properties

diffColors

Optional

Color configuration for highlighting differences

boolean

Whether the comparison sidebar opens automatically when the comparison loads

Default Value

true