1.15-beta-18
Pre-release
Pre-release
·
306 commits
to master
since this release
New Features 🎉
Share toolbars with script items as links, and export/import to/from Note Toolbar Callouts.
Script items can now be used in Note Toolbar Callouts. See below for some examples; copy some toolbars with script items as callouts to see more attributes/examples.
> [!note-toolbar|right-mnbrder] Script Nav
> - [Create from Template]()<data data-templater-obsidian="createFrom" data-src="Templater/Basic Template.md" data-dest="<%"Basic " + tp.file.last_modified_date("yyyy-MM-dd")%>"/>
> - [Dataview Query Example]()<data data-dataview="query" data-expr="TABLE file.mtime AS "Last Modified" FROM "Templater" SORT file.mtime DESC" data-callout="asf"/>
> - [Hello World with JS Engine]()<data data-js-engine="exec" data-src="Scripts/JsEngine/HelloWorld.js"/>
Notes:
- Attributes used depend on what's supported by the function used in the first parameter. Refer to the documentation for each script type for a table listing the applicable parameters:
data-expr
= expression/querydata-src
= source file, if executing a file (as opposed to an expression/query)data-func
= source function, if your script uses a functiondata-args
= source arguments, if accepted by your script, in JSON formatdata-callout
= output callout, if outputting to an output calloutdata-dest
= output file, if outputting to a file
- Quotes and angle brackets must be escaped in attribute values (i.e., use
"
<
&rt;
).
Fixed
Changed
- Data attributes in callouts no longer require the
ntb-
portion of the attribute name, though they're still supported in everything but the above new attributes for backwards compatibility.
Full Changelog: 1.15-beta-17...1.15-beta-18