From 58715f0a0866327f86e25bc9aff0d53e8f481ea1 Mon Sep 17 00:00:00 2001 From: ulaulaman Date: Sun, 16 Aug 2020 15:42:07 +0200 Subject: [PATCH] A copy of the javascript tiddler of TabTable macro --- js/TagTable.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 js/TagTable.js diff --git a/js/TagTable.js b/js/TagTable.js new file mode 100644 index 0000000..15185ea --- /dev/null +++ b/js/TagTable.js @@ -0,0 +1,39 @@ +/*\ +title: $:/macros/ulaulaman/TagTable.js +type: application/javascript +module-type: macro + +<> + +Example: +<> +<> + +\*/ +(function(){ + + /*jslint node: true, browser: true */ + /*global $tw: false */ + "use strict"; + + /* + Information about this macro + Create a styled table in order to show tiddlers from a specific tag as a menu. + */ + + exports.name = "TagTable"; + + exports.params = [ + { name: "tag" } + ]; + + /* + Run the macro + */ + exports.run = function(tag) { + if( !tag) tag = "menu"; + var output = "{{" + tag + "||$:/core/macros/ulaulaman/TagTable}}"; + return output; + }; + + })(); \ No newline at end of file