TX Sheet Control

EditorUi.highlightDependents Property

Property

Gets or sets whether committed cell edits briefly highlight downstream formula cells in green. The default is true.

Owner: EditorUi. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.

Syntax

highlightDependents: boolean

Examples

import type { EditorUi, Worksheet } from '@txtextcontrol/tx-sheet-control';

function showDependencyFeedback(ui: EditorUi, sheet: Worksheet) {
    ui.highlightDependents = true;
    sheet.cell('B1').setFormula('=A1*2');
    sheet.cell('C1').setFormula('=B1+10');
    sheet.cell('A1').setValue(25);
}

Remarks

The editor highlights direct and transitive formula dependents for about 1.4 seconds, then fades the feedback away. References through ranges and other worksheets participate in the dependency graph. Cross-sheet highlights appear if that worksheet is viewed while the feedback is active. The edited cell itself is excluded. Unchanged values and formatting-only edits do not start feedback.

The Formulas → Formula Auditing → Highlight Dependents toggle and editor.ui.highlightDependents share the same state. Setting the property to false immediately clears active feedback. Only boolean values are accepted; invalid values raise TypeError. Access after editor teardown raises an error.

This is a browser-editor preference, retained across document loads. It does not change cells, formatting, history, saved workbooks or exported files. Reduced-motion mode shows brief static feedback instead of fading. Server processing has no visual effect.

The server package includes this shared type declaration; a headless workbook does not create an editor UI. The browser example illustrates the corresponding editor behavior.