I’ve been experimenting with writing my own web components and using them with Corvid code via the CustomElement element. To communicate between the Corvid code and the Javascript inside the component, Ive had to use the SetAttribute method, and then in the component get the data I needed from the AttributeChangedCallback function. Messy as it means I have to serialise an object to string to use this method. Could we have a couple of new methods 1) Set(propertyName, value) 2) Get(propertyName, value) so the COrvid object could manipulate the Web Components properties directly.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
DropDown custom element for countries with flags | 9 | 905 | November 1, 2020 | |
Using Corvid Web Module in a Custom Element | 1 | 393 | July 29, 2020 | |
How to use collection data with custom element? | 2 | 294 | January 5, 2021 | |
New Feature: Custom Element | 0 | 2801 | March 11, 2020 | |
Custom Elements with dataset | 2 | 233 | April 4, 2024 |