Relative Content

Tag Archive for javascriptsvelte

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?

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.