Class: PhlexyUI::Table
- Inherits:
-
Base
- Object
- Phlex::HTML
- Base
- PhlexyUI::Table
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
#body ⇒ Object
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 (*, **, &)
(*, **, &)
end
|
17
18
19
|
# File 'lib/phlexy_ui/table.rb', line 17
def (*, **, &)
thead(*, **, &)
end
|
#row ⇒ Object
21
22
23
|
# File 'lib/phlexy_ui/table.rb', line 21
def row(*, **, &)
render TableRow.new(*, **, &)
end
|
#view_template ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|