Class: Impulse::Dialog::BodyComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Impulse::Dialog::BodyComponent
- Defined in:
- app/components/impulse/dialog/body_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**system_args) ⇒ BodyComponent
constructor
A new instance of BodyComponent.
Methods inherited from ApplicationComponent
Methods included from Helpers::AttributesHelper
Constructor Details
#initialize(**system_args) ⇒ BodyComponent
Returns a new instance of BodyComponent.
4 5 6 7 8 9 10 11 |
# File 'app/components/impulse/dialog/body_component.rb', line 4 def initialize(**system_args) @system_args = system_args @system_args[:tag] = :div @system_args[:class] = class_names( system_args[:class], "awc-dialog-body" ) end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/components/impulse/dialog/body_component.rb', line 13 def call render(Impulse::BaseRenderer.new(**@system_args)) { content } end |