Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

how to listen for event in child component update parent UI Astro file client side

$
0
0

I have a Parent Astro page, where i have a svelete component.i wanna Update some UI on the parent astro page when a button gets clicked in the child svelete component

Parent.astro

<script>    function updateBtn(){        //Display Button    }</script><div><div><Scomponent onclick="updateBtn()"/></div><button style="display=none">Click</button></div>

Scomponent.svelete (Svelete Component)

<div><button>Svelete button</button></div>

Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>