Additional Custom Element Methods

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.

1 Like