Module: Adminterface::Extensions::Views::Components::AttributesTable

Defined in:
lib/adminterface/extensions/views/components/attributes_table.rb

Instance Method Summary collapse

Instance Method Details

#default_class_nameObject



10
11
12
# File 'lib/adminterface/extensions/views/components/attributes_table.rb', line 10

def default_class_name
  "#{super} #{attributes_table_css_classes[:wrapper]}".squish
end

#tableObject



6
7
8
# File 'lib/adminterface/extensions/views/components/attributes_table.rb', line 6

def table
  super(class: attributes_table_css_classes[:table])
end

#tr(options = {}) ⇒ Object



14
15
16
17
# File 'lib/adminterface/extensions/views/components/attributes_table.rb', line 14

def tr(options = {})
  options[:class] = options[:class].split.reject { |x| x.eql?("row") }.join(" ")
  super(options)
end