lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
882 stars 62 forks source link

Update button.handlebars adding after-icon #348

Closed amrutadotorg closed 1 month ago

amrutadotorg commented 1 month ago

{{#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.

lovasoa commented 1 month ago

Great, thanks for the pr ! Can you also, in the same pull request, add the new item to the documentation: https://github.com/lovasoa/SQLpage/blob/main/examples/official-site/sqlpage/migrations/18_button.sql ?

Don't close this PR, just amend it.

lovasoa commented 1 month ago

@amrutadotorg : don't worry, I did it myself in https://github.com/lovasoa/SQLpage/commit/e5a964928e390c2eb4ffa1e45ae8b1e574e5b645 . Thanks for your contribution !