Class: Impulse::Dialog::FooterComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/impulse/dialog/footer_component.rb

Instance Method Summary collapse

Methods inherited from ApplicationComponent

generate_id

Methods included from Helpers::AttributesHelper

#merge_attributes

Constructor Details

#initialize(**system_args) ⇒ FooterComponent

Returns a new instance of FooterComponent.



4
5
6
7
8
9
10
11
# File 'app/components/impulse/dialog/footer_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-footer"
  )
end

Instance Method Details

#callObject



13
14
15
# File 'app/components/impulse/dialog/footer_component.rb', line 13

def call
  render(Impulse::BaseRenderer.new(**@system_args)) { content }
end