Class: CodengageViewComponents::TurboDrawerComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- CodengageViewComponents::TurboDrawerComponent
- Defined in:
- app/components/codengage_view_components/turbo_drawer_component.rb
Instance Method Summary collapse
-
#initialize(title:, subtitle: nil, close_on_submit: true, options: {}) ⇒ TurboDrawerComponent
constructor
A new instance of TurboDrawerComponent.
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 = end |