mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-27 15:50:53 -07:00
More API examples
This commit is contained in:
parent
1beb3a78f1
commit
b25d47a7fe
1 changed files with 24 additions and 0 deletions
|
|
@ -18,4 +18,28 @@ If the tiddler `HelloThere` is visible then you'll see it instantly change to re
|
|||
$tw.wiki.addTiddler({title: "IntentionallyMissingTiddler", text: "This tiddler now exists"});
|
||||
```
|
||||
|
||||
This example deletes a tiddler:
|
||||
|
||||
```
|
||||
$tw.wiki.deleteTiddler("HelloThere")
|
||||
```
|
||||
|
||||
This example retrieves all the outgoing links from a tiddler:
|
||||
|
||||
```
|
||||
$tw.wiki.getTiddlerLinks("HelloThere")
|
||||
```
|
||||
|
||||
This example retrieves all the incoming links to a tiddler:
|
||||
|
||||
```
|
||||
$tw.wiki.getTiddlerLinks("HelloThere")
|
||||
```
|
||||
|
||||
This example retrieves the titles of all the tiddlers matching a TiddlerFilter expression:
|
||||
|
||||
```
|
||||
$tw.wiki.filterTiddlers("[tag[docs]sort[modified]]")`
|
||||
```
|
||||
|
||||
If you're interested in understanding more about the internal operation of TiddlyWiki, it is recommended that you review the DeveloperDocs and read the code -- start with the boot kernel [[$:/core/boot.js]].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue