How to define a custom element method with defineCustomElement ?
What problem does this feature solve?
Our webcomponent should have the two methods openModal() and closeModal() that can be used as defineCustomElement to change the visibility state.
I used defineExpose but no responded, how to define custom element method ?
What does the proposed API look like?
liked defineExpose API?
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.