Class: BetterUi::Table::RowComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- BetterUi::Table::RowComponent
- Defined in:
- app/components/better_ui/table/row_component.rb
Overview
A table row component that renders a <tr> element with cell slots.
Used within TableComponent for slot-based table construction. Supports striped row backgrounds and hover effects.
Constant Summary
Constants inherited from ApplicationComponent
ApplicationComponent::SHADOWS, ApplicationComponent::VARIANTS, ApplicationComponent::VARIANT_BODY_DIVIDE, ApplicationComponent::VARIANT_DIVIDE, ApplicationComponent::VARIANT_HEADER_BG, ApplicationComponent::VARIANT_HEADER_TEXT, ApplicationComponent::VARIANT_HIGHLIGHTED, ApplicationComponent::VARIANT_HOVERABLE, ApplicationComponent::VARIANT_RING, ApplicationComponent::VARIANT_SORT_ICON, ApplicationComponent::VARIANT_STRIPED
Instance Method Summary collapse
-
#initialize(size: :md, striped: false, variant: :primary, hoverable: false, highlighted: false, style: :default, container_classes: nil) ⇒ RowComponent
constructor
A new instance of RowComponent.
Constructor Details
#initialize(size: :md, striped: false, variant: :primary, hoverable: false, highlighted: false, style: :default, container_classes: nil) ⇒ RowComponent
Returns a new instance of RowComponent.
20 21 22 23 24 25 26 27 28 29 |
# File 'app/components/better_ui/table/row_component.rb', line 20 def initialize(size: :md, striped: false, variant: :primary, hoverable: false, highlighted: false, style: :default, container_classes: nil) @size = size @striped = striped @variant = variant @hoverable = hoverable @highlighted = highlighted @style = style @container_classes = container_classes end |