3 ms·
Yes, the lib's great! Unfortunately I haven't thought much yet about interoperability with other web components libraries like lit. I imagined folks would choo
by kennyfrc 3y ago
Yes, the lib's great!
Unfortunately I haven't thought much yet about interoperability with other web components libraries like lit. I imagined folks would choose just one web component library over the other.
That said, you can initialize reactive properties(1), but property bindings won't work if there's a parent LitElement (as my reactive properties need to be called with either a .value method or an .update method for getting and setting respectively).
As of the moment, what's possible is interop with other cami elements using a store, and in a future version, i'm considering a richer event system for external javascript code to listen to.
---
(1) Initializing is possible with observerableAttr: https://github.com/kennyfrc/cami.js/blob/master/examples/008_dataFromProps.html https://github.com/kennyfrc/cami.js/blob/master/examples/008...