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

wrapping / scoping? #1

Open
Fil opened this issue Aug 6, 2019 · 0 comments
Open

wrapping / scoping? #1

Fil opened this issue Aug 6, 2019 · 0 comments

Comments

@Fil
Copy link
Contributor

Fil commented Aug 6, 2019

Hello, it would be nice to optionally give a scoping div to the script, in which it would restrict its search for document.selectAll([data-cell]), and also that it would use as the contentWrapper (https://github.com/zzzev/observable-press/blob/master/src/initialize.js#L43).

This could allow running the script in a certain part of the page, and maybe even running several instances of the script on a page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant