Class: DsfrComponent::ModalComponent
- Defined in:
- app/components/dsfr_component/modal_component.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(title:, opened: false, classes: [], html_attributes: {}) ⇒ ModalComponent
constructor
A new instance of ModalComponent.
Constructor Details
#initialize(title:, opened: false, classes: [], html_attributes: {}) ⇒ ModalComponent
Returns a new instance of ModalComponent.
8 9 10 11 12 13 14 |
# File 'app/components/dsfr_component/modal_component.rb', line 8 def initialize(title:, opened: false, classes: [], html_attributes: {}) @title = title @opened = opened @id = html_attributes[:id] super(classes: classes, html_attributes: html_attributes) end |