Class: Panda::Core::Admin::DashboardDefaultContentComponent
- Inherits:
-
Base
- Object
- ViewComponent::Base
- Base
- Panda::Core::Admin::DashboardDefaultContentComponent
- Defined in:
- app/components/panda/core/admin/dashboard_default_content_component.rb
Overview
Default dashboard content component Displays welcome message and quick action cards
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user:, **attrs) ⇒ DashboardDefaultContentComponent
constructor
A new instance of DashboardDefaultContentComponent.
Constructor Details
#initialize(user:, **attrs) ⇒ DashboardDefaultContentComponent
Returns a new instance of DashboardDefaultContentComponent.
9 10 11 12 |
# File 'app/components/panda/core/admin/dashboard_default_content_component.rb', line 9 def initialize(user:, **attrs) @user = user super(**attrs) end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
14 15 16 |
# File 'app/components/panda/core/admin/dashboard_default_content_component.rb', line 14 def user @user end |