Hi Matt > I've implemented a custom element > <https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements> > for recurring tasks. I found this easier than implementing the same thing as > a widget module <https://tiddlywiki.com/dev/#WidgetModules>, which seems to > require constructing HTML indirectly via objects describing elements > <https://github.com/tgrosinger/tw5-checklist/blob/master/js/checkbox-wikirule.js#L48>.
Interesting! And should work well for some cases. > How should this best be organized as a TW5 plugin? My initial thoughts are > that the JS that defines the custom element and calls customElements.define > should be a "startup" module while the template could be stored in an HTML > tiddler. That sounds exactly right. Best wishes Jeremy -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/73488F67-49C3-4BD9-9B9E-9EC3BA1C9556%40gmail.com.
