Update Metadata
The update metadata action allows you to update a specific property specified via a Bind Target. This property can be any valid Bind Target such as the frontmatter of a file.
If evaluate
is set to true
, the value is treated as a JavaScript expression and evaluated.
The current value of the property is available in the expression as x
.
Other properties can be reference using getMetadata(bindTarget)
where bindTarget
is a Bind Target string.
Example
This button group allows you to increment, decrement, and reset a counter stored in the frontmatter of the current file.
This is a simple health tracker for e.g. a TTRPG.