Class: Oversee::Table
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- Oversee::Table
show all
- Defined in:
- app/components/oversee/table.rb
Defined Under Namespace
Classes: Body, Data, Head, Row
Instance Method Summary
collapse
Instance Method Details
#body ⇒ Object
18
19
20
|
# File 'app/components/oversee/table.rb', line 18
def body(&)
render Oversee::Table::Body.new(&)
end
|
#head ⇒ Object
14
15
16
|
# File 'app/components/oversee/table.rb', line 14
def head(&)
render Oversee::Table::Head.new(&)
end
|
#view_template ⇒ Object
2
3
4
5
6
7
8
9
10
11
12
|
# File 'app/components/oversee/table.rb', line 2
def view_template(&)
div(class: "overflow-x-hidden") do
div(class: "-mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8") do
div(class: "inline-block min-w-full align-middle sm:px-6 lg:px-8") do
table(class: "min-w-full divide-y divide-gray-200") do
yield
end
end
end
end
end
|