You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/binding-input-range-change-.../main.svelte

14 lines
193 B

<script>
let value=10;
let max=10;
function change() {
value=20;
max=20;
}
</script>
<button on:click={change}/>
<input type=range min=0 max={max} bind:value>
<p>{value} of {max}</p>