Class: Bs5::ModalComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ViewComponent::SlotableV2
Defined in:
app/components/bs5/modal_component.rb

Constant Summary collapse

%i[backdrop keyboard focus].freeze

Instance Method Summary collapse

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 = {})
  @options = options.symbolize_keys
  extract_options
end