i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > visual > IBrushSetsManager > getColorForRecord

    visual.IBrushSetsManager.getColorForRecord() method

    Gets the CSS color string for a record based on the active brush sets.

    Signature:

    getColorForRecord(recordId: records.AnalyzeRecordId): string | null;
    

    Introduced: version 1.9

    Parameters

    Parameter Type Description
    recordId records.AnalyzeRecordId The identifier of the record.

    Returns:

    string | null

    The CSS color string for the record, or null if the record is not brushed.

    Remarks

    This method resolves colors using a two-layer precedence system:

    1. System overlay brush sets (for example, Find-on-Chart) take precedence 2. Falls back to the active plug-in-owned brush set 3. Returns null if the record is not brushed in any active set.
    In this article
    Back to top © N. Harris Computer Corporation