-
Notifications
You must be signed in to change notification settings - Fork 155
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
Interface with external JS library #547
Comments
Hi @runfalk, Rust <-> Js communication is possible (for instance, all Rust frameworks have to talk with the Js world to call browser APIs). There is also a WIP tutorial that uses Auth0's Js library to provide authentication - see e.g. https://seed-rs.org/0.7.0/time_tracker_authentication. However for your case I would recommend to wrap Some links that should help you a bit:
Hope it helps! |
@runfalk https://github.com/kartevonmorgen/leaflet-rs might be interesting for you. |
Kinda a similar question... Is using bootstrap by just modifying the class attributes within the html macros okay? Does bootstrap interact with the DOM in a way that could not play nice with Seed? |
@seanybaggins Bootstrap uses jQuery.. so it modifies DOM a lot (if nothing changed recently). There are some efforts to create a "native Bootstrap" (i.e. Bootstrap with JS without jQuery) or even a combination of Bootstrap with lit-element (it should work with Seed) - see e.g. https://medium.com/lightbaseio/bootstrap-4-lit-element-37c857a6bcca. But generally there is a reason why React, Vuejs and others have a special Bootstrap library. |
@MartinKavik Could this work within an electron application? I am guessing you would not get access to the file system because the framework is only designed to target wasm. |
@seanybaggins Btw there are potential Electron alternatives: |
@MartinKavik. Thanks for the reply. Tauri looks pretty cool. Definitely something I will keep my eye on. |
Thanks for the great pointers @MartinKavik and @flosse. I feel your replies answer my question pretty well. If I, or someone else, do something with this, would you be interested in a PR for the official documentation? |
Yes, PRs with examples or docs are very welcome. |
Hi!
I'm interested in using Seed but I also need Mapbox GL). I tried to look for that in the documentation, but there doesn't seem to be any mention on how to interface Seed with JS libraries (if it's even possible?).
What's the best way of doing this?
The text was updated successfully, but these errors were encountered: