Filterrunprefix and other module types - method signature

The named filter run prefix suggests that a custom filter run prefix can be created using Javascript if module type is set as filterrunprefix. There seems to be a dozen many such module types as given here.

So what would such a Javascript module export? What would be its run method? How would the Javascript method accept inputs? What would be its method signature?

Examples seem to exist only module type macro. How about for others like filterrunprefix?

Almost all TWCore modules are shadow tiddlers. Thus, it is necessary to use all[shadows] in the filter syntax. Otherwise, the filter only searches among non-shadow tiddlers.

Try this filter in $:/AdvancedSearch, Filter tab:

[all[shadows]module-type[filterrunprefix]]

Notes:

  • To see a list of all module types, use filter:
    [all[tiddlers+shadows]each[module-type]get[module-type]]

  • To see a list of all modules of all types, use filter:
    [all[tiddlers+shadows]has[module-type]]

2 Likes