Toggle visibillity of a list in Svelte
I am trying to do the most basic thing in Svelte but I keep failing. I want the button element to trigger the visibillity of the ul-element with classname “this-one”. I am stuck in the “vanilla js”-approach and can not wrap my head around how to achieve this the svelte-way. Any pointers?
document.execCommand and document.queryCommandState doesn’t work in Svelte
I want to create a text editor, but there are some confusing problems that have come up :
Problem with the reactivity issue in svelte
<div class=”scrollable-div”> <AnnotatedText {iobStringLatest} /> </div> I am writing this code in svelte where I ahve developed a component to re use in my code. Howeve, I am giving an input to that component. At first it is okay but when the iobStringLatest is updated with the new value, the AnnotatedText component is not rendering […]
how to display in the selected currency input placeholder a value of 1?
i’m trying to display a value of 1 in the placeholder of my input when i select a currency, but instead of 1 i see the exchange rate of the selected currency with USD, for example if i select EUR instead of 1 i see 0.93 (1 USD = 0.93 EUR). Any suggestion how to fix it? The issue is only in the placeholder of the currency that i’ve choose, in the second input box i see the correct exchange rate between the selected currency and the other currency.
How to display in the placeholder the exchange rate from a currency to another?
i’m new of using svelte so maybe my question could sound a little dumb, i managed to render the data that i got from the api in my code but now i would like to show in the placeholder of my input the exchange rate that i got from each currency to show the exchange rate between the 2 currencies.
How to display the fetched data from the api on svelte?
first time i’m trying to write an app on svelte, i wrote the function to get the data from api and destructured the data to get only what i need. But i don’t get how to render it?