radh-ui
Version:
Stencil Component Starter
1 lines • 581 B
JavaScript
import{r as s,h as t,H as e,g as a}from"./p-1a9f3501.js";class o{constructor(t){s(this,t),this.tomaPaga=async()=>{const s=this.element.shadowRoot.querySelector("cjs-child");await s.setPaga(5)}}onReply(s){this.messageFromChild=s.detail}render(){return t(e,null,t("cjs-child",{messageFromFather:"I am your father"}),t("p",null,"Message from child: ",this.messageFromChild),t("button",{onClick:this.tomaPaga},"Toma paga"))}get element(){return a(this)}}o.style=":host{display:block;--ws-check-button-width:50%;--ws-check-button-selected-border:solid 3px blue}";export{o as index_page}