Created
September 3, 2020 11:53
-
-
Save vilusa/24a4f6f31cf248bec2700e0b7a3446d5 to your computer and use it in GitHub Desktop.
Disable With Option fa-spin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def disable_with_option_v2(**options) | |
| icon = "<i class='fa fa-refresh fa-spin'></i>" | |
| icon += ' Wait...' unless options[:sm_icon] | |
| { disable_with: icon.html_safe } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment