Subscribe on changes!

How to define a custom element method with defineCustomElement ?

avatar
Oct 19th 2021

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?

avatar
Oct 19th 2021

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.