Module: CustomTable::IconsHelper
- Defined in:
- app/helpers/custom_table/icons_helper.rb
Instance Method Summary collapse
- #custom_table_cancel_icon ⇒ Object
- #custom_table_download_icon ⇒ Object
- #custom_table_icon(c) ⇒ Object
- #custom_table_move_icon_class ⇒ Object
- #custom_table_search_icon ⇒ Object
- #custom_table_search_icon_class ⇒ Object
- #custom_table_settings_icon ⇒ Object
- #custom_table_tree_child_icon_class ⇒ Object
Instance Method Details
#custom_table_cancel_icon ⇒ Object
31 32 33 34 |
# File 'app/helpers/custom_table/icons_helper.rb', line 31 def custom_table_cancel_icon return custom_table_icon("fa fa-ban") if CustomTable.configuration.icons_framework == :fa return custom_table_icon("bi bi-slash-circle") if CustomTable.configuration.icons_framework == :bi end |
#custom_table_download_icon ⇒ Object
5 6 7 8 |
# File 'app/helpers/custom_table/icons_helper.rb', line 5 def custom_table_download_icon return custom_table_icon("fa fa-download") if CustomTable.configuration.icons_framework == :fa return custom_table_icon("bi bi-download") if CustomTable.configuration.icons_framework == :bi end |
#custom_table_icon(c) ⇒ Object
41 42 43 |
# File 'app/helpers/custom_table/icons_helper.rb', line 41 def custom_table_icon c return content_tag(:i, "", class: c) end |
#custom_table_move_icon_class ⇒ Object
16 17 18 19 |
# File 'app/helpers/custom_table/icons_helper.rb', line 16 def custom_table_move_icon_class return "fa fa-sort" if CustomTable.configuration.icons_framework == :fa return "bi bi-arrow-down-up" if CustomTable.configuration.icons_framework == :bi end |
#custom_table_search_icon ⇒ Object
36 37 38 39 |
# File 'app/helpers/custom_table/icons_helper.rb', line 36 def custom_table_search_icon return custom_table_icon("fa fa-search") if CustomTable.configuration.icons_framework == :fa return custom_table_icon("bi bi-search") if CustomTable.configuration.icons_framework == :bi end |
#custom_table_search_icon_class ⇒ Object
21 22 23 24 |
# File 'app/helpers/custom_table/icons_helper.rb', line 21 def custom_table_search_icon_class return "fa fa-search" if CustomTable.configuration.icons_framework == :fa return "bi bi-search" if CustomTable.configuration.icons_framework == :bi end |
#custom_table_settings_icon ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/custom_table/icons_helper.rb', line 10 def custom_table_settings_icon return custom_table_icon("fa fa-cog") if CustomTable.configuration.icons_framework == :fa return custom_table_icon("bi bi-gear") if CustomTable.configuration.icons_framework == :bi end |
#custom_table_tree_child_icon_class ⇒ Object
26 27 28 29 |
# File 'app/helpers/custom_table/icons_helper.rb', line 26 def custom_table_tree_child_icon_class return "fa fa-arrow-right" if CustomTable.configuration.icons_framework == :fa return "bi bi-arrow-return-right" if CustomTable.configuration.icons_framework == :bi end |