Class: LesliView::Components::Panel

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/lesli_view/components/panel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, id = "panel", overlay: true) ⇒ Panel

Returns a new instance of Panel.



40
41
42
43
44
# File 'lib/lesli_view/components/panel.rb', line 40

def initialize(title, id="panel", overlay:true)
    @id = id 
    @title = title 
    @overlay = overlay
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



38
39
40
# File 'lib/lesli_view/components/panel.rb', line 38

def id
  @id
end

#overlayObject (readonly)

Returns the value of attribute overlay.



38
39
40
# File 'lib/lesli_view/components/panel.rb', line 38

def overlay
  @overlay
end

#titleObject (readonly)

Returns the value of attribute title.



38
39
40
# File 'lib/lesli_view/components/panel.rb', line 38

def title
  @title
end