Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a classname to running / invalidated cells #1610

Open
Fil opened this issue Aug 27, 2024 Discussed in #1605 · 0 comments
Open

Add a classname to running / invalidated cells #1610

Fil opened this issue Aug 27, 2024 Discussed in #1605 · 0 comments
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Aug 27, 2024

Originally posted by @yurivish

In Observable notebooks, you can tell that a cell is loading by the appearance of a gray stripe to the left of the cell.

Is there any mechanism in Observable Framework by which a cell can know when it's loading, ie. with a CSS class analogous to observablehq--running in notebooks, so that it can be styled differently?

The use case that prompted this is that I have a page with a dataset picker input. Changing their selection causes a new file to be loaded, but while that file is being loaded, the old charts continue to be displayed for a second or two, even though they correspond to the previous selection. It would be nice if they could be visually marked as invalidated or pending so it's clear that the displayed data does not correspond to the new selection.

@Fil Fil added the enhancement New feature or request label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant