Class: Shadcn::TableHeaderComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::TableHeaderComponent
- Defined in:
- app/components/shadcn/table_header_component.rb
Overview
Table Header component
Constant Summary collapse
- BASE_CLASSES =
"[&_tr]:border-b"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
This class inherits a constructor from Shadcn::BaseComponent
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'app/components/shadcn/table_header_component.rb', line 12 def call content_tag(:thead, safe_join([rows, content].compact.flatten), class: merge_classes(BASE_CLASSES)) end |