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

Adding Javascript table #312

Open
EthanRLeonard opened this issue Jul 23, 2023 · 0 comments
Open

Adding Javascript table #312

EthanRLeonard opened this issue Jul 23, 2023 · 0 comments

Comments

@EthanRLeonard
Copy link

Really liking this package so far. Awesome job.

How do I add a table reactively (without using expression sorcery to remake the page each time)?

This is my handle. Any help would be appreciated.

handle(w, "press") do (file,stocks)
include(file)
@js_ w (@var k = document.createElement("TABLE");
        @var r1 = k.insertRow(0);
        document.table.appendChild(r1);
        document.body.appendChild(r1);
        )
end

I have been able to connect to inputs, display text, and refresh the screen, but tables don't seem to show up for some reason.

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