Nutrient Web SDK
    Preparing search index...

    Interface TextComparisonSidebarConfiguration

    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
    });
    
    
    interface TextComparisonSidebarConfiguration {
        diffColors?: TextComparisonDiffColors;
        openByDefault?: boolean;
    }
    Index

    Properties

    Color configuration for highlighting differences

    openByDefault?: boolean

    Whether the comparison sidebar opens automatically when the comparison loads

    true