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
Instance Method Details
16
|
# File 'lib/protos/modal.rb', line 16
def close_button(...) = render CloseButton.new(...)
|
#dialog ⇒ Object
18
|
# File 'lib/protos/modal.rb', line 18
def dialog(...) = render Dialog.new(...)
|
#trigger ⇒ Object
20
|
# File 'lib/protos/modal.rb', line 20
def trigger(...) = render Trigger.new(...)
|
#view_template ⇒ Object
12
13
14
|
# File 'lib/protos/modal.rb', line 12
def view_template(&)
div(**attrs, class: css[:container], &)
end
|