jupyterlab/jupyterlab

Add Data Attribute for Cell Tags

Open

#8,298 opened on Apr 28, 2020

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (2,937 forks)batch import
enhancementgood first issuehelp wantedpkg:cells

Repository metrics

Stars
 (13,454 stars)
PR merge metrics
 (Avg merge 16d 4h) (86 merged PRs in 30d)

Description

Description

We should add a CSS data attribute to a cell that has the papermill "parameters" tag. Right now you'd have to dig into the model to get this information yourself. This information is useful because you might want to style the parameter cell differently. In fact, we may want to do that ourselves at some point.

This can be accomplished at the cell level, by listening for changes to cell metadata and applying or removing a CSS attribute based on the presence of that tag (e.g. setAttribute('data-parameter-cell', 'true')).

Contributor guide