console.log(widget)exports.widgetname = NameOfWidget;NameOfWidget" are only local symbols, and not available globally.we could add a 'type' or name to the object, but at present you would need to do this:
exports.type = function() {
return ?!?;
}
--
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 tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/0770341b-6b5f-4790-972a-616b5c40d4b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For widgets that have been created in the usual way, `widget.parseTreeNode.type` will return “browse”, “edit-text”, etc. It’s the technique that is used in the core, for example:
Here’s a better example: