Class: Spark::Table::Row

Inherits:
Component::Base show all
Defined in:
app/components/spark/table/row.rb

Constant Summary collapse

ALIGN =
%i[left center right]
VALIGN =
%i[top middle bottom]

Instance Method Summary collapse

Methods inherited from Component::Base

#selector, #to_s, #unique_id

Constructor Details

#initializeRow

Returns a new instance of Row.



25
26
27
28
29
# File 'app/components/spark/table/row.rb', line 25

def initialize(*)
  super
  set_element_attribute_default(:td, align: @align, v_align: @v_align, nowrap: @nowrap)
  set_element_attribute_default(:th, align: @align, v_align: @v_align, nowrap: @nowrap)
end