Skip to content

Tag: svelte

Trying to get a value from a custom store Svelte

i want to ask something, i have a custom store like i will explaying the scenario, im creating a script for a fivem server and im using svelte, i create a store that get a Vehicle with some properties like Name, Last Name, Plate and bla bla, i create the setData(Vehicle) and pass a set(Vehicle) then in anothe…

Unable to update nodes position using d3 force and Svelte

I’m trying to create a simple network using D3 force and Svelte. The network position should depend on the container dimensions computed using bind:clientWidth and bind:clientHeight. I mean that if the network container has width=200, height=300, then the network center should be x=100, y=150. The code …

Using Svelte, Fable and Tauri

I’m creating a Tauri app that uses Fable to compile F# to JS. And I want to use Svelte with it, too. So far, I have compiled my F# file to a .js file. I’ve created a .svelte file with the following contents (named App.svelte) My index.html: And my main.mjs: I run the program with npm run build. Th…

Update array elements

I am trying to do something similar to a shopping cart, where initially there is a series of products that I load with an array of objects. I show the list of products with svelte like this: And through the function addProduct() I update the array inventory with the product id and the number of units of that …

How to style AG grid in svelte?

I am trying to add styling to my AG grid but so far I have not been successful. The only way that has worked is setting some css variables given by the library but that is quite limited. I tried extending the existing classes but I always get Unused css selector warning and I haven’t been able to find a