Class: LesliView::Components::Panel
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- LesliView::Components::Panel
- Defined in:
- lib/lesli_view/components/panel.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#overlay ⇒ Object
readonly
Returns the value of attribute overlay.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, id = "panel", overlay: true) ⇒ Panel
constructor
A new instance of Panel.
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 = end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
38 39 40 |
# File 'lib/lesli_view/components/panel.rb', line 38 def id @id end |
#overlay ⇒ Object (readonly)
Returns the value of attribute overlay.
38 39 40 |
# File 'lib/lesli_view/components/panel.rb', line 38 def @overlay end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
38 39 40 |
# File 'lib/lesli_view/components/panel.rb', line 38 def title @title end |