Class: AhoyCaptain::Tables::HeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AhoyCaptain::Tables::HeaderComponent
- Defined in:
- app/components/ahoy_captain/tables/header_component.rb
Instance Method Summary collapse
- #fixed_height? ⇒ Boolean
-
#initialize(headers, options = {}) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(headers, options = {}) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
4 5 6 7 |
# File 'app/components/ahoy_captain/tables/header_component.rb', line 4 def initialize(headers, = {}) @headers = headers.flatten @options = end |
Instance Method Details
#fixed_height? ⇒ Boolean
9 10 11 12 13 14 15 |
# File 'app/components/ahoy_captain/tables/header_component.rb', line 9 def fixed_height? if @options.key?(:fixed_height) @options[:fixed_height] else true end end |