input
Description
fires on change of the value of an input, i.e. on the HTML input eventParameters
- ev - (object) a CustomEvent object
Example
<script>
function handleType(ev){
const type = ev.detail;
console.log(type);
=>"the typed text"
}
</script>
<Text placeholder="Type here" on:input={handleType}/>
Details
The event fires immediately on the HTML input event. The handler function returns a string with the text typed in the input.
Related article: Catching the change of the value