Class: PhlexyUI::TableRow

Inherits:
Base
  • Object
show all
Defined in:
lib/phlexy_ui/table_row.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PhlexyUI::Base

Instance Method Details

#columnObject Also known as: cell



19
20
21
# File 'lib/phlexy_ui/table_row.rb', line 19

def column(*, **, &)
  td(*, **, &)
end

#headObject



15
16
17
# File 'lib/phlexy_ui/table_row.rb', line 15

def head(*, **, &)
  th(*, **, &)
end

#view_templateObject



5
6
7
8
9
10
11
12
13
# File 'lib/phlexy_ui/table_row.rb', line 5

def view_template(&)
  generate_classes!(
    modifiers_map: modifiers,
    base_modifiers:,
    options:
  ).then do |classes|
    tr(class: classes, **options, &)
  end
end