Class: Mensa::ControlBar::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/mensa/control_bar/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#tableObject (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

Returns:

  • (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

Returns:

  • (Boolean)


16
17
18
# File 'app/components/mensa/control_bar/component.rb', line 16

def view_condensed_toggle?
  table.view_condensed_toggle?
end