Class: Mensa::ControlBar::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::ControlBar::Component
- Defined in:
- app/components/mensa/control_bar/component.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table:) ⇒ Component
constructor
A new instance of Component.
- #view_columns_sorting? ⇒ Boolean
- #view_condensed_toggle? ⇒ Boolean
Constructor Details
#initialize(table:) ⇒ Component
Returns a new instance of Component.
8 9 10 |
# File 'app/components/mensa/control_bar/component.rb', line 8 def initialize(table:) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'app/components/mensa/control_bar/component.rb', line 6 def table @table end |
Instance Method Details
#view_columns_sorting? ⇒ Boolean
12 13 14 |
# File 'app/components/mensa/control_bar/component.rb', line 12 def view_columns_sorting? table.view_columns_sorting? end |
#view_condensed_toggle? ⇒ Boolean
16 17 18 |
# File 'app/components/mensa/control_bar/component.rb', line 16 def view_condensed_toggle? table.view_condensed_toggle? end |