Action button types¶
The Buttons plugin for Obsidian allows users to create interactive action buttons within notes using code blocks.^[200-學習OB__plugin__buttons.md]
Button types¶
The functionality of a button is determined by its type parameter.
- Default (Action): If no
typeis specified, the button defaults to a standard action button.^[200-學習OB__plugin__buttons.md] This type typically executes a specific command or function within the plugin's context. - Link: Buttons can be configured as hyperlinks by setting
type link.^[200-學習OB__plugin__buttons.md] This type requires anactionparameter containing the target URL.
Parameters¶
- name: Defines the text label displayed on the button.^[200-學習OB__plugin__buttons.md]
- action: Specifies the target URL for link-type buttons.^[200-學習OB__plugin__buttons.md]
- templater: A boolean parameter (
true/false) that enables integration with the Templater plugin.^[200-學習OB__plugin__buttons.md] - color: Sets the color of the button (e.g.,
blue).^[200-學習OB__plugin__buttons.md]
Related Concepts¶
- [[Obsidian]]
- [[Templates]]
Sources¶
200-學習OB__plugin__buttons.md