Class: Protos::Modal
- 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
- #close_button ⇒ Object
- #dialog ⇒ Object
- #trigger ⇒ Object
-
#view_template ⇒ Object
DOCS: A modal component that can be triggered by a button or a link and will open a fullscreen modal, usually with a close button.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#close_button ⇒ Object
12 |
# File 'lib/protos/modal.rb', line 12 def (...) = render CloseButton.new(...) |
#trigger ⇒ Object
16 |
# File 'lib/protos/modal.rb', line 16 def trigger(...) = render Trigger.new(...) |
#view_template ⇒ Object
DOCS: A modal component that can be triggered by a button or a link and will open a fullscreen modal, usually with a close button.
8 9 10 |
# File 'lib/protos/modal.rb', line 8 def view_template(&) div(**attrs, class: css[:container], &) end |