Method: Anchor::DialogComponent#initialize
- Defined in:
- app/components/anchor/dialog_component.rb
#initialize(id:, title:, position: POSITION_DEFAULT, **kwargs) ⇒ DialogComponent
Returns a new instance of DialogComponent.
20 21 22 23 24 25 26 27 28 |
# File 'app/components/anchor/dialog_component.rb', line 20 def initialize(id:, title:, position: POSITION_DEFAULT, **kwargs) @id = id @title = title @position = fetch_or_fallback( POSITION_OPTIONS, position, POSITION_DEFAULT ) super(id:, **kwargs) end |