Skip to main content

All Questions

3 votes
0 answers
266 views

Electron: Using Svelte … How do I invoke dialog.showOpenDialog IN/FROM a .svelte file/component?

This should be SOOOoooo simple and I can't figure it out. :-( Electron ➙ Svelte ➙ User pushes button ➙ Dialog box opens! I want to use Electron's dialog.showOpenDialog() because I need to specify many ...
HirsuteJim's user avatar
3 votes
1 answer
4k views

Svelte: make component reactive to variable (rerender)

I want to rerender "Body" (my svelte component) whenever "view.current" changes so it renders the corresponding .svelte view/component: App.svelte <script> import ...
Horst's user avatar
  • 269
0 votes
1 answer
559 views

how to import stripe.js in sapper app into my preload() or onMount()

I have installed stripe.js using the following command : npm install stripe Now I would like to import it into my sapper component so I can use it but unable to figure out how to do that despite ...
Marco's user avatar
  • 1,205
0 votes
1 answer
559 views

Create a global svelte-component that works like svelte:head

In my current project I am working with a self-developed module system, where the individual modules should also have the possibility to extend e.g.the navbar by simply writing some HTML inside a <...
user avatar