
I’ve got a complicated setup I don’t really need to get into, but essentially I have a ColumnDataSource (CDS) that the user can append to. It’s set up such that their append operations will only add one “row” at a time, with the necessary checks/safeguards ensuring all CDS fields get a value for the appended row (i.e. maintaining consistent lengths).
I’m wondering if there’s a way to detect that “append” operation being executed (i.e. a change in the length of one of the fields in the CDS).
I know I can do src.js_on_change(‘data’,CustomJS(…)), but the user also has the means of editing existing items in the CDS, and I don’t want to trigger a callback when that happens.
I also suppose I could ID all the ways the user is able to execute that append operation (i.e. add a new callback to when they click the append button etc.). But it’d be a lot cleaner if I could simply trigger a callback on changes to CDS data length. Any thoughts? Thanks…



