Class: SolidWebUi::Ui::PageComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- SolidWebUi::Ui::PageComponent
- Defined in:
- app/components/solid_web_ui/ui/page_component.rb
Overview
Page chrome shared by every dashboard screen: a title, an optional nav bar (array of { label:, href:, active: }) and the page body as content.
Instance Method Summary collapse
-
#initialize(title:, nav: []) ⇒ PageComponent
constructor
A new instance of PageComponent.
Constructor Details
#initialize(title:, nav: []) ⇒ PageComponent
Returns a new instance of PageComponent.
8 9 10 11 |
# File 'app/components/solid_web_ui/ui/page_component.rb', line 8 def initialize(title:, nav: []) @title = title @nav = nav || [] end |