Configuration options for the text comparison sidebar.
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}); Copy
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});
Copy
Optional
Color configuration for highlighting differences
Whether the comparison sidebar opens automatically when the comparison loads
true Copy
true
Configuration options for the text comparison sidebar.
Example