Class: Protos::Modal::Dialog

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/modal/dialog.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_template(&block) ⇒ Object

DOCS: A modal dialog. This is the place for the main content of the modal that will be displayed when the trigger is clicked.



9
10
11
12
13
# File 'lib/protos/modal/dialog.rb', line 9

def view_template(&block)
  dialog(**attrs) do
    div(class: css[:modal], &block)
  end
end