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
Constructor Details
This class inherits a constructor from PhlexyUI::Base
Instance Method Details
#body ⇒ Object
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 (*, **, &)
(*, **, &)
end
|
16
17
18
|
# File 'lib/phlexy_ui/table.rb', line 16
def (*, **, &)
thead(*, **, &)
end
|
#row ⇒ Object
20
21
22
|
# File 'lib/phlexy_ui/table.rb', line 20
def row(*, **, &)
render TableRow.new(*, **, &)
end
|
#view_template ⇒ Object
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
|