Daily Tips - Write the Simplest Client-side Callback 🌭

On the Python side, it would be written like:

app.clientside_callback(
    f"(href => window.innerWidth < 750 ? {[i for i in df.columns if i not in ['GAME','RATIO','COMP %']]} : [])",
    Output("table", "hidden_columns"),
    Input("loc", "href"),
)
1 Like