Module: CustomTable::IconsHelper

Defined in:
app/helpers/custom_table/icons_helper.rb

Instance Method Summary collapse

Instance Method Details

#custom_table_cancel_iconObject



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_iconObject



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 (:i, "", class: c)
end

#custom_table_move_icon_classObject



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_iconObject



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_classObject



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_iconObject



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_classObject



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