Class: Bs5::ModalComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Bs5::ModalComponent
- Includes:
- ViewComponent::SlotableV2
- Defined in:
- app/components/bs5/modal_component.rb
Constant Summary collapse
- MODAL_OPTIONS =
%i[backdrop keyboard focus].freeze
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ModalComponent
constructor
A new instance of ModalComponent.
Constructor Details
#initialize(options = {}) ⇒ ModalComponent
Returns a new instance of ModalComponent.
19 20 21 22 |
# File 'app/components/bs5/modal_component.rb', line 19 def initialize( = {}) @options = .symbolize_keys end |