Class: CustomTable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/custom_table/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
18
19
# File 'lib/custom_table/configuration.rb', line 10

def initialize
  @icons_framework = :bi
  @filter_outer_wrapper_class = "card"
  @filter_inner_wrapper_class = "card-body bg-light"
  @show_search_icon = false
  @move_totals_top = false
  @date_format = :default
  @datetime_format = :short

end

Instance Attribute Details

#date_formatObject

Returns the value of attribute date_format.



7
8
9
# File 'lib/custom_table/configuration.rb', line 7

def date_format
  @date_format
end

#datetime_formatObject

Returns the value of attribute datetime_format.



8
9
10
# File 'lib/custom_table/configuration.rb', line 8

def datetime_format
  @datetime_format
end

#filter_inner_wrapper_classObject

Returns the value of attribute filter_inner_wrapper_class.



4
5
6
# File 'lib/custom_table/configuration.rb', line 4

def filter_inner_wrapper_class
  @filter_inner_wrapper_class
end

#filter_outer_wrapper_classObject

Returns the value of attribute filter_outer_wrapper_class.



4
5
6
# File 'lib/custom_table/configuration.rb', line 4

def filter_outer_wrapper_class
  @filter_outer_wrapper_class
end

#icons_frameworkObject

Returns the value of attribute icons_framework.



3
4
5
# File 'lib/custom_table/configuration.rb', line 3

def icons_framework
  @icons_framework
end

#move_totals_topObject

Returns the value of attribute move_totals_top.



6
7
8
# File 'lib/custom_table/configuration.rb', line 6

def move_totals_top
  @move_totals_top
end

#show_search_iconObject

Returns the value of attribute show_search_icon.



5
6
7
# File 'lib/custom_table/configuration.rb', line 5

def show_search_icon
  @show_search_icon
end