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
openByDefault
Optional
boolean
Whether the comparison sidebar opens automatically when the comparison loads
Default Value
true
Configuration options for the text comparison sidebar.