Class: LesliView::Layout::Container

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/lesli_view/layout/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(turbo_frame_id, dashboard: false) ⇒ Container

Returns a new instance of Container.



41
42
43
44
# File 'lib/lesli_view/layout/container.rb', line 41

def initialize(turbo_frame_id, dashboard: false)
    @turbo_frame_id = turbo_frame_id
    @dashboard = dashboard
end

Instance Attribute Details

#dashboardObject (readonly)

Returns the value of attribute dashboard.



39
40
41
# File 'lib/lesli_view/layout/container.rb', line 39

def dashboard
  @dashboard
end

#turbo_frame_idObject (readonly)

Returns the value of attribute turbo_frame_id.



38
39
40
# File 'lib/lesli_view/layout/container.rb', line 38

def turbo_frame_id
  @turbo_frame_id
end