Class: EasyAdmin::Dashboards::ShowComponent
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- EasyAdmin::Dashboards::ShowComponent
- Defined in:
- app/components/easy_admin/dashboards/show_component.rb
Instance Method Summary collapse
-
#initialize(dashboard_class:, params: {}, request_path: nil) ⇒ ShowComponent
constructor
A new instance of ShowComponent.
- #view_template ⇒ Object
Methods inherited from BaseComponent
#easy_admin_url_helpers, #helpers, #rails_url_helpers
Methods included from Permissions::Component
#current_user_can?, #current_user_has_role?, #if_can, #if_has_role, #permission_attrs, #permission_button, #permission_case, #permission_classes, #permission_field, #permission_link, #unless_can, #unless_has_role
Methods included from FieldsHelper
#field_component, #render_field
Methods included from EasyAdmin::DashboardsHelper
#delta_badge_classes, #metric_value_classes, #render_card, #sparkline_color, #sparkline_points, #trend_direction, #trend_icon, #trend_indicator_classes
Constructor Details
#initialize(dashboard_class:, params: {}, request_path: nil) ⇒ ShowComponent
Returns a new instance of ShowComponent.
4 5 6 7 8 |
# File 'app/components/easy_admin/dashboards/show_component.rb', line 4 def initialize(dashboard_class:, params: {}, request_path: nil) @dashboard_class = dashboard_class @params = params @request_path = request_path end |
Instance Method Details
#view_template ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/components/easy_admin/dashboards/show_component.rb', line 10 def view_template div(class: "p-3 sm:p-4 md:p-6 max-w-7xl mx-auto") do render_dashboard_header render_dashboard_filters render_dashboard_grid end end |