Class: Protos::Modal

Inherits:
Component show all
Defined in:
lib/protos/modal.rb,
lib/protos/modal/dialog.rb,
lib/protos/modal/trigger.rb,
lib/protos/modal/close_button.rb

Defined Under Namespace

Classes: CloseButton, Dialog, Trigger

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#close_buttonObject



16
# File 'lib/protos/modal.rb', line 16

def close_button(...) = render CloseButton.new(...)

#dialogObject



18
# File 'lib/protos/modal.rb', line 18

def dialog(...) = render Dialog.new(...)

#triggerObject



20
# File 'lib/protos/modal.rb', line 20

def trigger(...) = render Trigger.new(...)

#view_templateObject



12
13
14
# File 'lib/protos/modal.rb', line 12

def view_template(&)
  div(**attrs, class: css[:container], &)
end