Class: PhlexyUI::Table

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

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PhlexyUI::Base

Instance Method Details

#bodyObject



24
25
26
# File 'lib/phlexy_ui/table.rb', line 24

def body(*, **, &)
  tbody(*, **, &)
end


28
29
30
# File 'lib/phlexy_ui/table.rb', line 28

def footer(*, **, &)
  tfoot(*, **, &)
end

#headerObject



16
17
18
# File 'lib/phlexy_ui/table.rb', line 16

def header(*, **, &)
  thead(*, **, &)
end

#rowObject



20
21
22
# File 'lib/phlexy_ui/table.rb', line 20

def row(*, **, &)
  render TableRow.new(*, **, &)
end

#view_templateObject



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

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