To get the list of tiddler titles, you should probably use a filter and get the filter from a tiddler. This is standard practice in the core so you or users can exclude or include tiddler titles in the list.
To get the functions you can call, you probably want to use the global $tw variable. If you want to get the exports of an individual Javascript tiddler, you should probably load it into a proper type checker and get the types from there. Just my thoughts. I'm sure there's more than one way to skin the cat. Arlen On Sun, May 10, 2020 at 8:53 AM Jed Carty <[email protected]> wrote: > To get a tiddler in javascript you use the function > $tw.wiki.getTiddler('tiddler title'), it returns a json object with the > from: > > { > fields: { > title: "tiddler title", > other_field: "field contents" > }, > cache{} > } > > so to get the text of a tiddler you could use: > > var text = $tw.wiki.getTiddler('tiddler title').fields.text > > there have been a few efforts to make full documentation for the > tiddlywiki internals, but no one has succeeded yet. > > -- > 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/c7a0d8c0-7939-4ec7-9cf0-4eccb7733a76%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywikidev/c7a0d8c0-7939-4ec7-9cf0-4eccb7733a76%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAJ1vdSTOpefhvC8fiY1UPkqnmxSvmGECAZCej9xF-QkrDdxiSA%40mail.gmail.com.
