Create #9466.tid

This commit is contained in:
lin onetwo 2025-11-27 18:26:32 +08:00
parent 5148182ad6
commit 701e963fd4

View file

@ -0,0 +1,15 @@
title: $:/changenotes/5.4.0/#9466
description: ViewToolbar buttons now support condition field
tags: $:/tags/ChangeNote
release: 5.4.0
change-type: feature
change-category: hackability
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9466
github-contributors: linonetwo
ViewToolbar buttons can now be conditionally displayed based on the currentTiddler using a `condition` field. Similar to how `$:/tags/Exporter` and `$:/tags/EditorTools` already have. An example would be:
```tid
tags: $:/tags/ViewToolbar
condition: [<currentTiddler>type[text/x-markdown]] [<currentTiddler>type[text/markdown]]
```