Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on:click svelte arguments

function handleClick(x){
	console.log(x);
    //output: tree
}

<button on:click={() => handleClick("tree")}>
    It works...
</button>
Source by qastack.com.de #
 
PREVIOUS NEXT
Tagged: #svelte #arguments
ADD COMMENT
Topic
Name
3+3 =