Releases: shabegom/buttons
Releases · shabegom/buttons
0.2.1
Add replace and note()
- Removed the shine hover effect because it looks crummy on mobile.
- added a
replace
argument. Use along withtype prepend template
to replace existing content between a specified header and the button:
```button
name My Replace Button
type prepend template
action A Template.
replace ## Section Heading
```
- added a note() template option to the
type
argument that will create a new note based on the specified template:
```button
name My Template Button
type note(Path/Note Name) template
action My Template
```
Check the README for requirements and more information.
Address Code Review & Add Notices
- Addresses code review from obsidianmd/obsidian-releases#221 (comment)
- Added helpful notices in case
Add template functionality
Add the template
button type
- prepend or append content from a specified template
Add remove feature
- added a
remove
argument. addingremove
to the button will remove the button after it executes the command or opens the link.
Updated Styling
This release includes a breaking change from the previous release
customClass
argument is now class
customId
argument is now id
Adding a class
argument will remove default button styling. You can add that styling back by including the class names as values to the class
argument:
class button-default button-shine
This change allows you to combine different classes to create many different button style. Enjoy!
Add customId argument
- added an argument to supply a custom css ID for styling purposes
Add customClass argument
- added a
customClass
argument for custom button styling
Initial Release
The first release of the Obsidian Buttons plugin!