Class: PhlexyUI::Table

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

Instance Method Summary collapse

Methods inherited from Base

#initialize, modifiers

Constructor Details

This class inherits a constructor from PhlexyUI::Base

Instance Method Details

#bodyObject



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

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


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

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

#headerObject



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

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

#rowObject



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

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

#view_templateObject



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

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