dash-pivottable icon indicating copy to clipboard operation
dash-pivottable copied to clipboard

[Feature Request] Pass updates to ValueFilter through to inputs

Open halemade opened this issue 2 years ago • 2 comments

Currently, you can capture the ValueFilter property as input, but changes to filters aren't passed back to the app.

DE user would like to use this property to trigger a callback and access the updated values.

halemade avatar May 13 '22 17:05 halemade

I had the same wish, and have my own fork; the fix is simply to add valueFilter to handleChange in the setProps section

            this.props.setProps({
                data,
                cols,
                colOrder,
                rows,
                rowOrder,
                aggregatorName,
                rendererName,
                valueFilter,
                showUI,
            });
        }```

cdruck avatar Dec 22 '22 14:12 cdruck

Hi cdruck.

I tried implmenting your fix + using a fork but I received this error when running usage.py and adjusting the filter

TypeError: Converting circular structure to JSON --> starting at object with constructor 'HTMLParagraphElement' | property '__reactInternalInstance$y1dac41yydc' -> object with constructor 'FiberNode' --- property 'stateNode' closes the circle at JSON.stringify ()

mkonchwalla avatar Feb 04 '24 18:02 mkonchwalla