Closed guidocioni closed 3 months ago
To avoid interruptions
Example
clientside_callback( """ function(n_clicks, element_id) { var targetElement = document.getElementById(element_id); if (targetElement) { setTimeout(function() { targetElement.scrollIntoView({ behavior: 'smooth' }); }, 500); // in milliseconds } return null; } """, Output("garbage", "data", allow_duplicate=True), Input("intermediate-value-point", "data"), [State("time-plot-point", "id")], prevent_initial_call=True, )
In theory we can trigger this already when the button is pressed and not only when the plot is ready!
Changed in faf48a67eae39783be1befdb847006b6a0073a7b
To avoid interruptions
Example
In theory we can trigger this already when the button is pressed and not only when the plot is ready!