Skip to content

Commit

Permalink
Update button.handlebars adding after-icon
Browse files Browse the repository at this point in the history
Explanation
{{#if after_icon}}: This new block checks if the after_icon parameter is provided. If it is, it renders the icon after the text.
In this way, the template will support both an icon before and after the text, depending on which parameters (icon or after_icon) are provided.
  • Loading branch information
amrutadotorg authored May 29, 2024
1 parent 7ea5755 commit 492c632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlpage/templates/button.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<span class="me-1">{{~icon_img icon~}}</span>
{{~/if~}}
{{~title~}}
{{~#if after_icon~}}
<span class="ms-1">{{~icon_img after_icon~}}</span>
{{~/if}}
{{#if form}}
</button>
{{else}}
Expand Down

0 comments on commit 492c632

Please sign in to comment.