Class: CodengageViewComponents::TurboDrawerComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/codengage_view_components/turbo_drawer_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(title:, subtitle: nil, close_on_submit: true, options: {}) ⇒ TurboDrawerComponent

Returns a new instance of TurboDrawerComponent.



5
6
7
8
9
10
# File 'app/components/codengage_view_components/turbo_drawer_component.rb', line 5

def initialize(title:, subtitle: nil, close_on_submit: true, options: {})
  @title = title
  @subtitle = subtitle
  @close_on_submit = close_on_submit
  @options = options
end